Table of Contents

Class VMwareHierarchyObjectCollection

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a collection of VMware hierarchy objects.

public class VMwareHierarchyObjectCollection : Collection<VMwareHierarchyObject>, IList<VMwareHierarchyObject>, ICollection<VMwareHierarchyObject>, IList, ICollection, IReadOnlyList<VMwareHierarchyObject>, IReadOnlyCollection<VMwareHierarchyObject>, IEnumerable<VMwareHierarchyObject>, IEnumerable
Inheritance
VMwareHierarchyObjectCollection
Implements
Inherited Members

Constructors

VMwareHierarchyObjectCollection()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.VMwareHierarchyObjectCollection class.

public VMwareHierarchyObjectCollection()

Methods

FindByManagedObjectID(string)

Returns the object with the specified managed object identifer from the current location in the hierarchy, or null if no object is found.

public VMwareHierarchyObject FindByManagedObjectID(string ManagedObjectID)

Parameters

ManagedObjectID string

The managed object identifier to locate.

Returns

VMwareHierarchyObject

The CENTREL.XIA.Configuration.Types.VMwareHierarchyObject with the specified managed object identifier.

FindByManagedObjectID(string, VMwareHierarchyObjectType, bool)

Returns the object with the specified managed object identifer from the current location in the hierarchy, or null if no object is found.

public VMwareHierarchyObject FindByManagedObjectID(string ManagedObjectID, VMwareHierarchyObjectType ObjectType, bool Recurse)

Parameters

ManagedObjectID string

The managed object identifier to locate.

ObjectType VMwareHierarchyObjectType

The type of object to locate.

Recurse bool

Determines whether the hierarchy should be recursed.

Returns

VMwareHierarchyObject

The CENTREL.XIA.Configuration.Types.VMwareHierarchyObject with the specified managed object identifier.

FindByObjectType(VMwareHierarchyObjectType)

Returns a collection of objects with the specified object type within the collection.

public VMwareHierarchyObjectCollection FindByObjectType(VMwareHierarchyObjectType objectType)

Parameters

objectType VMwareHierarchyObjectType

The type of object to locate.

Returns

VMwareHierarchyObjectCollection

A collection of objects with the specified object type from the current location in the hierarchy.

FindByObjectType(VMwareHierarchyObjectType, bool)

Returns a collection of objects with the specified object type from the current location in the hierarchy.

public VMwareHierarchyObjectCollection FindByObjectType(VMwareHierarchyObjectType objectType, bool recurse)

Parameters

objectType VMwareHierarchyObjectType

The type of object to locate.

recurse bool

Determines whether the hierarchy should be recursed.

Returns

VMwareHierarchyObjectCollection

A collection of objects with the specified object type from the current location in the hierarchy.

FindParentDataCenter(string)

Returns the parent data center for the hierarchy object with the specified managed object identifier.

public VMwareHierarchyObject FindParentDataCenter(string managedObjectID)

Parameters

managedObjectID string

The managed object identifier of the object to locate.

Returns

VMwareHierarchyObject

The CENTREL.XIA.Configuration.Types.VMwareHierarchyObject that represents the parent data center for the hierarchy object.

Sort()

Sorts the values in the collection.

public void Sort()

ToManagedObjectIdentifiers()

Converts the specified hierarchy to a collection of managed object identifiers.

public SerializableStringCollection ToManagedObjectIdentifiers()

Returns

SerializableStringCollection

A CENTREL.Support.SerializableStringCollection containing the managed object identifiers in the collection.