Table of Contents

Class VMwareVirtualMachineCollection

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

Represents a collection of VMware virtual machines.

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

Constructors

VMwareVirtualMachineCollection()

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

public VMwareVirtualMachineCollection()

Methods

CheckDuplicateName(VMwareVirtualMachine)

Determines whether the specified virtual machine has the same name as another virtual machine in the collection.

public bool CheckDuplicateName(VMwareVirtualMachine virtualMachine)

Parameters

virtualMachine VMwareVirtualMachine

The virtual machine to check for duplicate names.

Returns

bool

A System.Boolean value that indicates whether the specified virtual machine has the same name as another virtual machine in the collection.

FindByManagedObjectIdentifier(string)

Returns the virtual machine with the specified managed object identifier, or null if no virtual machine with that managed object identifier is found.

public VMwareVirtualMachine FindByManagedObjectIdentifier(string identifier)

Parameters

identifier string

The managed object identifier of the virtual machine to locate.

Returns

VMwareVirtualMachine

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

FindByManagedObjectIdentifiers(SerializableStringCollection)

Finds the virtual machines with the specified managed object identifiers.

public VMwareVirtualMachineCollection FindByManagedObjectIdentifiers(SerializableStringCollection identifiers)

Parameters

identifiers SerializableStringCollection

A CENTREL.Support.SerializableStringCollection that contains the managed object identifiers of the virtual machines to find.

Returns

VMwareVirtualMachineCollection

The virtual machines with the specified managed object identifiers.

FindByNetwork(string)

Returns a collection of virtual machines connected to the specified network.

public VMwareVirtualMachineCollection FindByNetwork(string networkName)

Parameters

networkName string

The name of the network to which connected virtual machines should be returned [case sensitive].

Returns

VMwareVirtualMachineCollection

A collection virtual machines connected to the specified network.

FindTemplates()

Returns a CENTREL.XIA.Configuration.Types.VMwareVirtualMachineCollection containing only templates from this collection.

public VMwareVirtualMachineCollection FindTemplates()

Returns

VMwareVirtualMachineCollection

A CENTREL.XIA.Configuration.Types.VMwareVirtualMachineCollection containing only templates from this collection.

FindVirtualMachines()

Returns a CENTREL.XIA.Configuration.Types.VMwareVirtualMachineCollection containing only virtual machines (not templates) from this collection.

public VMwareVirtualMachineCollection FindVirtualMachines()

Returns

VMwareVirtualMachineCollection

A CENTREL.XIA.Configuration.Types.VMwareVirtualMachineCollection containing only virtual machines (not templates) from this collection.

Sort()

Sorts the values in the collection.

public void Sort()