SMS_CollectToSubCollect
The SMS_CollectToSubCollect WMI class defines parent-child relationships between collections. Instances of this class are used to build a hierarchy of collections by logically relating one instance of SMS_Collection to another.
The following syntax is simplified from MOF code and includes all inherited properties.
Class SMS_CollectToSubCollect
{
string parentCollectionID;
string subCollectionID;
};
Properties
parentCollectionID
Access type: Read/write
Qualifiers: KeyString representing the unique identifier of the parent collection.
subCollectionID
Access type: Read/write
Qualifiers: KeyString representing the unique identifier of the parent's child collection.
Remarks
Use this class to modify the collection hierarchy, as opposed to using the SMS_CollectToSubCollect_a association class.
Because a collection's membership is defined by its subcollections as well as its collection rules, adding or deleting instances of this class modifies the parent collection. For this reason, you need modify rights to the parent collection to add, delete, or modify instances of this class.
A collection must be defined in the collection hierarchy in order for it to be visible in the console. For more information on adding and deleting parent-child relationships in the collection hierarchy, see Managing a Collection Hierarchy.
Instances of this class are automatically deleted if the referenced collection is deleted.
See Also
Collection Classes, Creating a Collection, Managing a Collection Hierarchy, SMS_Collection, SMS_CollectToSubCollect_a