PropertyDef Properties Collection

Meta Data Services Programming

Meta Data Services Programming

PropertyDef Properties Collection

A Properties collection contains all of the persistent properties and collections that are attached to an object through a particular interface. The PropertyDef object exposes four separate Properties collections. These collections are exposed by:

  • The IPropertyDef2 interface (the default) or IPropertyDef interface.

  • The IRepositoryObject or IRepositoryObject2 interface.

  • The IInterfaceMember or IInterfaceMember2 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; evaluates to an object that exposes IPropertyDef2 or IPropertyDef, IRepositoryObject or IRepositoryObjectVersion, IInterfaceMember or IInterfaceMember2, 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 number of elements in the collection. The number of elements in the collection is specified by object.Properties.Count.

Remarks

For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.

See Also

PropertyDef Object

ReposProperty Object