IInterfaceDef::CreateMethodDef

Meta Data Services Programming

Meta Data Services Programming

IInterfaceDef::CreateMethodDef

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

HRESULT CreateMethodDef(     VARIANT               sObjId,
    BSTR
                    Name,
    long                       iDispId,
    IInterfaceMember
**ppIMethodDef
);

Parts

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.

See Also

IInterfaceDef Interface

IInterfaceMemberInterface