getInterface

getInterface(interfaceClass: Class): IDispatch;

The getInterface method of the IDispatch class returns the ActiveX class specified in the interfaceClass parameter, if it exists. (As ActiveX interfaces are created as subclasses of the IDispatch class when an ActiveX type library is imported, use the Class List of the Class Browser to obtain the names of ActiveX interfaces, if required.)

If the specified class does not exist, a null value is returned.