ClassDef Object

See Also

The ClassDef object helps you create information models by adding interfaces to a class. To insert a new class definition into an information model, use the ReposTypeLib object.

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

A ClassDef object is also a RepositoryObject object. In addition to the members described here, ClassDef objects also provide the members that are defined for repository objects.

When to Use

Use the ClassDef object to:

Properties

Property Description
ClassID The global identifier of the class.

Methods

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 object collection containing all of the objects in the repository that conform to this class.

Collections

Collection Description
Interfaces The collection of all interfaces that are implemented by the class.
ItemInCollections This collection is empty for class definitions. It is reserved for future use.
Properties The collection of all persistent properties that are attached to the ClassDef object.
ReposTypeLibScopes The collection of all repository type libraries that contain this definition.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.