IReposTypeLib::CreateInterfaceDef

Meta Data Services Programming

Meta Data Services Programming

IReposTypeLib::CreateInterfaceDef

This method creates a new interface definition object. Use the IClassDef::AddInterface method to attach the interface to a class definition object.

HRESULT CreateInterfaceDef(     VARIANT         sObjId,
    BSTR               Name,
    VARIANT         sIId,
    IInterfaceDef   *pIAncestor,
    IInterfaceDef   **ppIInterfaceDef
);

Parameters

sObjId

[in]
The object identifier to be assigned to the new interface definition object. If this parameter is set to OBJID_NULL, the repository engine assigns an object identifier for you.

Name

[in]
The name of the interface that is to be created.

sIId

[in]
The interface identifier associated with the signature for this interface. If there is none, set this parameter to zero.

*pIAncestor

[in]
The IInterfaceDef interface pointer for the base interface from which the new interface is derived.

*pplInterfaceDef

[out]
The interface pointer for the new interface.

Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

See Also

IClassDef::AddInterface

IInterfaceDef Interface

IReposTypeLib Interface