Class VMwareHierarchyObject
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents an object within the VMware object hierarchy.
public class VMwareHierarchyObject : GlobalSerializableClassicBase, IComparable<VMwareHierarchyObject>
- Inheritance
-
VMwareHierarchyObject
- Implements
Constructors
VMwareHierarchyObject()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.VMwareHierarchyObject class.
public VMwareHierarchyObject()
VMwareHierarchyObject(VMwareHierarchyObjectType)
Initializes a new instance of the CENTREL.XIA.Configuration.Types.VMwareHierarchyObject class.
public VMwareHierarchyObject(VMwareHierarchyObjectType objectType)
Parameters
objectType
VMwareHierarchyObjectTypeThe type of object that this represents.
Properties
Children
Gets or sets the child items of this hierarchy object.
public VMwareHierarchyObjectCollection Children { get; set; }
Property Value
CollectionIndex
Gets the collection index for this item.
[Browsable(false)]
public string CollectionIndex { get; }
Property Value
ManagedObjectID
Gets or sets the unique ID for this managed object - for example "group-d1".
public string ManagedObjectID { get; set; }
Property Value
Name
Gets or sets the display name of the object in the hierarchy - for example "Datacenters".
public string Name { get; set; }
Property Value
ObjectType
Gets or sets the type of object within the hierarchy.
public VMwareHierarchyObjectType ObjectType { get; set; }
Property Value
ObjectTypeString
Gets the type of object as a human readable string.
public string ObjectTypeString { get; set; }
Property Value
Methods
AddChild(string, string, VMwareHierarchyObjectType)
Adds a new hierarchy object to the child collection of this object.
public VMwareHierarchyObject AddChild(string name, string managedObjectID, VMwareHierarchyObjectType objectType)
Parameters
name
stringThe display name of the object to add - for example "Datacenters".
managedObjectID
stringThe unique ID of the managed object to add - for example "group-d1".
objectType
VMwareHierarchyObjectTypeThe CENTREL.XIA.Configuration.Types.VMwareHierarchyObjectType of the managed object to add.
Returns
- VMwareHierarchyObject
A CENTREL.XIA.Configuration.Types.VMwareHierarchyObject object.
Clone()
Returns a CENTREL.XIA.Configuration.Types.VMwareHierarchyObject cloned from this object.
public VMwareHierarchyObject Clone()
Returns
- VMwareHierarchyObject
A CENTREL.XIA.Configuration.Types.VMwareHierarchyObject.
CompareTo(VMwareHierarchyObject)
Compares two CENTREL.XIA.Configuration.Types.VMwareHierarchyObject objects to allow sorting alphabetically by type and by name.
public int CompareTo(VMwareHierarchyObject other)
Parameters
other
VMwareHierarchyObjectThe CENTREL.XIA.Configuration.Types.VMwareHierarchyObject to compare to.
Returns
- int
The sort order of the two objects.
ResolveObjectType(VMwareHierarchyObjectType)
Resolves the display name for the specified hierarchy object type.
public static string ResolveObjectType(VMwareHierarchyObjectType objectType)
Parameters
objectType
VMwareHierarchyObjectTypeThe CENTREL.XIA.Configuration.Types.VMwareHierarchyObjectType to resolve.
Returns
- string
The display name of the specified CENTREL.XIA.Configuration.Types.VMwareHierarchyObjectType.
ToString()
Returns the hierarchy object as a human readable string - for example "DEMO-ESX01 [Host]".
public override string ToString()
Returns
- string
The hierarchy object as a human readable string.