IRepositoryItem::get_Interface

See Also

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 wish 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 for the Automation programmer to be able to easily access alternate interfaces, when no type library is available for the item's class.