Workspace Contents Collection

See Also

A Contents collection contains all of the Repository object versions present in the workspace.

Syntax

Set variable = object.Contents( index )
Set
variable = object.Contents( objectID )

The Contents collection syntax has the following parts.

Part Description
variable A variable declared as a RepositoryObjectVersion object. Receives the specified object version.
object An object expression that evaluates to a Workspace object.
index An integer index that identifies which item 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.Contents.Count.
objectID An object identifier of the an object version present in the workspace.