IClassDef Interface

See Also

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

To complete a class definition, once you have added all of the interfaces, commit the transaction that brackets your class definition modifications.

When to Use

Use the IClassDef interface to:

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.