Workspace Containers Collection

See Also

This collection specifies the root object that contains this workspace.

Collection descriptor Descriptor value
Relationship Type WsContainer_Contains_Workspace
Source Is Origin No
Minimum Collection Size One
Maximum Collection Size Many
Sequenced Collection No
Deletes Propagated No
Destinations Named No
Case Sensitive Names Not Applicable
Unique Names Not Applicable

Syntax

Set variable = object.Containers( index )

The Containers collection syntax has the following parts.

Part Description
variable A variable declared as a ReposRoot object or as any object that supports the IWorkspaceContainer interface. Receives the Object containing the interface.
object The object that represents a Workspace object.
index An integer index that identifies which element in the collection is to be addressed. This value must be one, because in this release, the Root Object is the only object that implements the IWorkspaceContainer interface.

Remarks

Although the collection's maximum size is defined as many, the collection always contains exactly one object, because only the Root Object can contain workspaces and there is only one Root Object.