Class VMwareDistributedSwitches
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of VMware distributed virtual switches.
public class VMwareDistributedSwitches : BaseTypeSection
- Inheritance
-
VMwareDistributedSwitches
Constructors
VMwareDistributedSwitches()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.VMwareDistributedSwitches class.
public VMwareDistributedSwitches()
Properties
Items
Gets or sets the items in the collection.
public VMwareDistributedSwitchCollection Items { get; set; }
Property Value
Methods
Exists(string)
Determines whether the distributed virtual switch with the specified managed object ID exists in the collection.
public bool Exists(string ManagedObjectID)
Parameters
ManagedObjectID
stringThe managed object ID of the distributed virtual switch to locate - for example "dvs-29".
Returns
- bool
A System.Boolean value that indicates whether a distributed virtual switch with the specified managed object ID exists in the collection.
FindByManagedObjectIdentifier(string)
Returns the VMware distributed virtual switch with the specified managed object ID, or null if no distributed virtual switch with that ID is found.
public VMwareDistributedSwitch FindByManagedObjectIdentifier(string managedObjectID)
Parameters
managedObjectID
stringThe managed object ID of the distributed virtual switch to locate - for example "dvs-29".
Returns
- VMwareDistributedSwitch
The CENTREL.XIA.Configuration.Types.VMwareDistributedSwitch object with the specified managed object ID.
FindByName(string)
Returns the VMware distributed virtual switch with the specified name, or null if no distributed virtual switch with that name is found.
public VMwareDistributedSwitch FindByName(string name)
Parameters
name
stringThe name of the distributed virtual switch to locate.
Returns
- VMwareDistributedSwitch
The CENTREL.XIA.Configuration.Types.VMwareDistributedSwitch object with the specified name.
FindPortGroupByKey(string)
Returns the VMware distributed port group with the specified key (regardless of the distributed switch on which it resides), or null if no distributed port group with that key is found.
public VMwareDistributedPortGroup FindPortGroupByKey(string key)
Parameters
key
stringThe key of the distributed port group to locate.
Returns
- VMwareDistributedPortGroup
The CENTREL.XIA.Configuration.Types.VMwareDistributedPortGroup object with the specified key.
FindPortGroupByManagedObjectID(string)
Returns the VMware distributed port group with the specified managed object identifier (regardless of the distributed switch on which it resides), or null if no distributed port group with that managed object identifier is found.
public VMwareDistributedPortGroup FindPortGroupByManagedObjectID(string managedObjectID)
Parameters
managedObjectID
stringThe managed object identifier of the distributed port group to locate.
Returns
- VMwareDistributedPortGroup
The CENTREL.XIA.Configuration.Types.VMwareDistributedPortGroup object with the specified managed object identifier.
FromXml(string)
Returns a CENTREL.XIA.Configuration.Types.VMwareDistributedSwitches class from the specified XML.
public static VMwareDistributedSwitches FromXml(string Xml)
Parameters
Xml
stringThe XML representation of the object.
Returns
- VMwareDistributedSwitches
A CENTREL.XIA.Configuration.Types.VMwareDistributedSwitches class.
ToString()
Returns the distributed virtual switches in a human readable format - for example "10 Distributed Virtual Switches".
public override string ToString()
Returns
- string
The distributed virtual switches in a human readable format.