IInterfaceMember Interface

Meta Data Services Programming

Meta Data Services Programming

IInterfaceMember Interface

The properties, methods, and collections that a class implements are organized into functionally related groups. Each group is implemented as a COM interface. The properties, methods, and collections of each interface are members of the interface.

The IInterfaceMember interface maintains this information for an interface member:

  • The member dispatch identifier.

  • Information about member visibility.

  • The relationship to the interface that exposes a particular interface member.

This information is common to properties, methods, and collection types. The PropertyDef, MethodDef, and CollectionDef classes all implement this interface.

When to Use

Use the IInterfaceMember interface to access the common properties of an interface member, or to determine which interface definition has a member of a particular property, method, or collection type.

Properties
Properties Description
DispatchID The dispatch identifier to use when accessing an instance of this type of member
Flags The flags that specify details about this type of member

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.

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

See Also

CollectionDef Class

IInterfaceMember2 Interface

MethodDef Class

PropertyDef Class