IRepositoryItem::get_Interface

Meta Data Services Programming

Meta Data Services Programming

IRepositoryItem::get_Interface

This method retrieves the interface pointer for an alternate interface that the item exposes. The specified interface must be an Automation interface; that is, it must support the methods of the IDispatch interface.

HRESULT get_Interface(     VARIANT     whichInterface,
    IDispatch    **ppInterface
);

Parameters

whichInterface

[in]
Specifies the interface you want to access. This parameter can be the name of the interface, the interface identifier, or the object identifier of the interface definition object in the repository.

*ppInterface

[out]
The interface pointer for the Automation interface.

Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

Remarks

Some objects expose multiple interfaces. This method is provided as a mechanism so that the Automation programmer can easily access alternate interfaces for those cases where no type library is available for the class of the item.

See Also

IRepositoryItem Interface