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
*ppIMethodDef [out]
The interface pointer for the newly created method definition.
Return Value
S_OK
The method completed successfully.
This method failed to complete successfully.