Add Methods to Each Interface

Meta Data Services Programming

Meta Data Services Programming

Add Methods to Each Interface

Each of the interfaces in your information model can expose methods. Attach a new method to an interface by creating an instance of the MethodDef class.

To create a new method definition

  • Use the CreateMethodDef method of the IInterfaceDef interface that is exposed by your InterfaceDef object.

    Note  If your interface has methods, you must provide your own Automation server for classes that implement this interface. For more information about deciding which kind of Automation server to use, see Information Model Creation Issues.

See Also

Add Properties to Each Interface

Add Relationship Types and Pairs of Collection Types

Creating Type Information Programmatically

IInterfaceDef Interface