IInterfaceDef::CreateMethodDef

See Also

This method creates a new method definition and attaches it to the interface definition.

HRESULT CreateMethodDef(
VARIANT sObjId,
BSTR Name,

long iDispId,
IInterfaceMember **ppIMethodDef
);

Parameters

sObjId

[in]
The object identifier to be used for the new method definition object. The Repository engine will assign an object identifier if you set this parameter to OBJID_NULL.

Name

[in]
The name of the new method.

iDispId

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

*ppIMethodDef [out]
The interface pointer for the newly created method definition.

Return Value

S_OK

The method completed successfully.

Error

Values

This method failed to complete successfully.