This method creates a new method definition and attaches it to the interface definition.
Set variable = object.CreateMethodDef(sObjId, name, dispId)
The CreateMethodDef method syntax has the following parts.
| Part | Description | 
| object | An object expression that evaluates to an InterfaceDef object. | 
| variable | A variable declared as a MethodDef object. Receives the new method definition. | 
| sObjId | 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 | The name of the new method. | 
| dispId | The dispatch identifier to be used for accessing the new method. |