Meta Data Services Programming
InterfaceDef CreateMethodDef Method
This method creates a new method definition and attaches it to the interface definition.
Syntax
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. It 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. |