Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
Returns the specified dual interface on the object.
[Visual Basic] Function GetInterface(ByVal Interface as String) as Object [C++] HRESULT GetInterface( BSTR Interface, IDispatch** ppUnknown); [IDL] HRESULT GetInterface([in] BSTR Interface, [out,retval] IDispatch** ppUnknown);
The GetInterface method is primarily intended as an generic interface navigation aid to scripting languages that do not support such navigation directly.
The list of valid interface names to pass to GetInterface is dependent upon a specific implementation. As a general rule, the name of the desired interface should match the physical name of the interface as it appears in the type library or IDL file. Check the appropriate COM class for a list of exposed dual interfaces. If the requested interface is not supported by the object, an exception is raised with the HRESULT value of E_INVALIDARG.
Dim iCfg
Set iCfg = CreateObject("CDO.Configuration")
Dim iDsrc
Set iDsrc = iCfg.GetInterface("IDataSource")