IInterfaceDef2::CreateAlias

Meta Data Services Programming

Meta Data Services Programming

IInterfaceDef2::CreateAlias

The CreateAlias method is used in member delegation to add an alias member to the interface definition. The repository engine does not prevent the creation of duplicate alias names. If you want to avoid duplicate aliases, you must verify that the alias name is unique.

This method has the following syntax:

HRESULT CreateAlias(
    VARIANT sObjID,
    BSTR Name,
    long iDispID,
    IInterfaceMember *pIIfaceMemBase,
    IInterfaceMember2 **ppIIfaceMem2);

Parts

sObjID

[in]
The object identifier to be used with the new alias member.

Name

[in]
The name of the new alias member.

iDispID

[in]
The dispatch identifier to be used for accessing the new alias member.

pIIfaceMemBase

[in]
The interface pointer for the base member.

*ppIIfaceMem2

[out, retval]
The interface pointer for the derived member.

Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

See Also

IInterfaceDef2 Interface

Member Delegation