Class VMwareHosts
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of VMware hosts.
public class VMwareHosts : BaseTypeSection
- Inheritance
-
VMwareHosts
Constructors
VMwareHosts()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.VMwareHosts class.
public VMwareHosts()
Properties
Items
Gets or sets the items in the collection.
public VMwareHostCollection Items { get; set; }
Property Value
Methods
Exists(string)
Determines whether the Host with the specified managed object ID exists in the collection.
public bool Exists(string ManagedObjectID)
Parameters
ManagedObjectID
stringThe managed object ID of the host to locate - for example "host-29".
Returns
- bool
A System.Boolean value that indicates whether a host with the specified managed object ID exists in the collection.
FindByManagedObjectID(string)
Returns the VMware host system with the specified managed object ID, or null if no host with that ID is found.
public VMwareHost FindByManagedObjectID(string ManagedObjectID)
Parameters
ManagedObjectID
stringThe managed object ID of the host to locate - for example "host-29".
Returns
- VMwareHost
The CENTREL.XIA.Configuration.Types.VMwareHost object with the specified managed object ID.
FindByName(string)
Returns the VMware host system with the specified name, or null if no host with that name is found.
public VMwareHost FindByName(string Name)
Parameters
Name
stringThe name of the host to locate.
Returns
- VMwareHost
The CENTREL.XIA.Configuration.Types.VMwareHost object with the specified name.
FromXml(string)
Returns a CENTREL.XIA.Configuration.Types.VMwareHosts class from the specified XML.
public static VMwareHosts FromXml(string Xml)
Parameters
Xml
stringThe XML representation of the object.
Returns
- VMwareHosts
A CENTREL.XIA.Configuration.Types.VMwareHosts class.
GetOperatingSystemBreakdown()
Returns breakdown of the number of each host operating system - for example "VMware ESX Server 3i", found to be running on the hosts in the collection.
public CountBreakdown GetOperatingSystemBreakdown()
Returns
- CountBreakdown
A CENTREL.XIA.Configuration.Types.CountBreakdown object populated with host information.
Remarks
Empty host product names are replaced with the string "{Unknown}.
ToString()
Returns the hosts in a human readable format - for example "10 Hosts".
public override string ToString()
Returns
- string
The hosts in a human readable format.