IMethodDef Interface

Meta Data Services Programming

Meta Data Services Programming

IMethodDef Interface

The IMethodDef interface, which inherits from IInterfaceMember, allows the model creator to define an ordered list of parameter definitions for a method. The IMethodDef interface is the default interface of the MethodDef class returned by the IInterfaceDef::CreateMethodDef method.

When to use

Use the IMethodDef interface to:

  • Define a list of parameter definitions for a method.

  • Generate fully descriptive Interface Definition Language (IDL) files from the information model.
Properties
IInterfaceMember property Description
DispatchID The dispatch identifier to use when accessing a MethodDef instance
Flags Flags that specify details about a MethodDef instance

Methods
IUnknown method Description
QueryInterface Returns pointers to supported interfaces
AddRef Increments the reference count
Release Decrements the reference count

IDispatch method Description
GetIDsOfNames Maps a single member and a set of argument names to a corresponding set of dispatch identifiers
GetTypeInfo Retrieves a type information object, which can be used to get the type information for an interface
GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1)
Invoke Provides access to properties and methods exposed by an Automation object

IRepositoryDispatch method Description
get_Properties Retrieves the IReposProperties interface pointer. The IReposProperties interface provides access to the Properties collection.

IMethodDef method Description
CreateParameterDef Creates a new parameter definition and attaches it to the end of the parameter list for the particular method

Collections
IInterfaceMember collection Description
Interface The collection of one interface that exposes this type of member

IMethodDef collection Description
Parameters The collection of parameter definition objects that provide parameters to this method

See Also

CollectionDef Class

IParameterDef Interface

MethodDef Class

PropertyDef Class