RepositoryObject Properties Collection

Meta Data Services Programming

Meta Data Services Programming

RepositoryObject Properties Collection

The Properties collection returns a list of all properties defined on every interface that the class supports.

Property names must be unique within the collection. To distinguish between identically named properties, the repository engine first adds the interface name (for example, myInterfaceName.myPropertyName). If the name is still a duplicate, the prefix of the information model is assigned (for example, myTypeLibPrefix:myInterfaceName.myPropertyName). In this case, the prefix is provided by the ReposTypeLib object.

This property is not attached to the default interface for the repository Automation object; it is attached to the IRepositoryObject2 interface. For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.

Syntax

Set variable  = object.Properties(index) Set variable  = object.Properties(objID)
Set
variable  = object.Properties(objName)

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 that evaluates to a RepositoryObject.
index An integer index that identifies which property in the collection to address. For an integer index, 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 object.Properties.Count.

For more information, see Selecting Items in a Collection.

objID An object identifier that identifies which property in the collection to address.
objName An object name that identifies which property in the collection to address.

See Also

IRepositoryObject Interface

IRepositoryObject2 Interface

Repository Object

RepositoryObject Object

ReposProperty Object