IClassDef Interface

Meta Data Services Programming

Meta Data Services Programming

IClassDef Interface

The IClassDef interface helps you create information models by adding interfaces to a class. To insert a new class definition into an information model, use the IReposTypeLib interface.

After you add all of the interfaces, you can complete a class definition by committing the transaction that brackets your class definition modifications.

When to Use

Use the IClassDef interface to:

  • Add a new or existing interface to a class definition.

  • Retrieve the global identifier for the class.

  • Access the collection of interfaces that are part of a class definition.
Properties
Property Description
ClassID The global identifier of the class

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.

IClassDef method Description
AddInterface Adds an existing interface to the class definition
CreateInterfaceDef Creates a new interface and adds it to the class definition
ObjectInstances Materializes an IObjectCol interface pointer for the collection of all objects in the repository that conform to this class

Collections
Collection Description
Interfaces The collection of all interfaces that are implemented by a class

See Also

ClassDef Class

IReposTypeLib Interface