Meta Data Services Programming
ClassDef Properties Collection
A Properties collection contains all of the persistent properties and collections that are attached to a ClassDef object through a particular interface. The ClassDef object exposes four separate Properties collections. These collections are exposed by:
- The IClassDef2 interface (the default) or IClassDef interface.
- The IReposTypeInfo or IReposTypeInfo2 interface.
- The IRepositoryObject or IRepositoryObject2 interface.
- The IAnnotationalProps interface.
Syntax
Set variable = object.Properties(index)
The Properties collection syntax has the following parts.
Part | Description |
---|---|
variable | A variable declared as a ReposProperty object. It receives the specified property. |
object | An object expression; it evaluates to an object that exposes IClassDef or IClassDef2, IReposTypeInfo or IReposTypeInfo2, IRepositoryObject or IRepositoryObject2, or IAnnotationalProps as the default interface. |
index | An integer index that identifies which property in the collection is to be addressed. The valid range is from one to the total number of elements in the collection. The number of elements in the collection is specified by the object Properties.Count. For more information, see Selecting Items in a Collection. |
Remarks
Additional steps are required for accessing members that are not part of the default interface. For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.