IRepositoryDispatch Interface

Meta Data Services Programming

Meta Data Services Programming

IRepositoryDispatch Interface

The IRepositoryDispatch interface is an enhanced IDispatch interface. In addition to all of the standard IDispatch methods, IRepositoryDispatch also provides access to the Properties collection. The Properties collection gives you a convenient mechanism to enumerate through all of the persistent properties and collections of an interface.

When you instantiate an Automation object that represents an object from your information model, and that object conforms to a class for which there is no custom implementation (in other words, you have not provided a software implementation of the class), the repository engine will provide an interface implementation for you. This interface implementation uses IRepositoryDispatch as its dispatch interface.

When to Use

Use the IRepositoryDispatch interface to access the properties and collections of a repository object, when no custom implementation is available.

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.

Remarks

The repository engine will supply an interface implementation only if your interface is defined to inherit from IDispatch or IRepositoryDispatch.

See Also

IAnnotationalProps Interface

IClassDef Interface

ICollectionDef Interface

IInterfaceDef Interface

IInterfaceMember Interface

IManageReposTypeLib Interface

IPropertyDef Interface

IReposProperties Interface

IReposTypeInfo Interface

IReposTypeLib Interface

IReposRoot Interface

ISummaryInformation Interface