Workspace Containers Collection

Meta Data Services Programming

Meta Data Services Programming

Workspace Containers Collection

This collection specifies the root object that contains this workspace. Although the maximum size of the collection is defined as unlimited, the collection always contains one object. This is because there is only one root object, and only the root object can contain workspaces.

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. It 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. For more information, see Selecting Items in a Collection.
Remarks

The following characteristics are true for this collection.

Collection characteristic Value Description
Relationship Type WsContainer_Contains_Workspace This is the type of relationship by which all items of the collection are connected to a common source object.
Source Is Origin No The source object for the collection is not the same as the origin object.
Minimum Collection Size One The minimum number of items that must be contained in the collection is one.
Maximum Collection Size Many The maximum number of items that can be contained in the collection is unlimited.
Sequenced Collection No As a destination collection, this does not have an explicitly defined sequence. Collections of origin objects are never sequenced.
Deletes Propagated No Deleting an origin object or a relationship in the collection does not cause the deletion of a corresponding destination object.
Destinations Named No The relationship type for the collection does not permit the naming of destination objects.
Case-sensitive Names Not applicable Case-sensitive naming is not applicable for this collection.
Unique Names Not applicable Unique naming is not applicable for this collection.

See Also

ClassDef Object

InterfaceDef Object

ReposRoot Object

Workspace Object