Table of Contents

Class VMwareDatastoreCollection

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

Represents a collection of VMware datastores.

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

Constructors

VMwareDatastoreCollection()

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

public VMwareDatastoreCollection()

Methods

CheckDuplicateName(VMwareDatastore)

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

public bool CheckDuplicateName(VMwareDatastore datastore)

Parameters

datastore VMwareDatastore

The datastore to check for duplicate names.

Returns

bool

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

FindById(string)

Returns the datastore with the specified managed object identifier, or null if no datastore with that identifier exists within the collection.

public VMwareDatastore FindById(string id)

Parameters

id string

The managed object identifier of the datastore to find - for example "datastore-30".

Returns

VMwareDatastore

The CENTREL.XIA.Configuration.Types.VMwareDatastore with the specified identifier.

FindByManagedObjectIdentifier(string)

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

public VMwareDatastore FindByManagedObjectIdentifier(string identifier)

Parameters

identifier string

The managed object identifier of the datastore to locate.

Returns

VMwareDatastore

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

FindByManagedObjectIdentifiers(SerializableStringCollection)

Finds the datastores with the specified managed object identifiers.

public VMwareDatastoreCollection FindByManagedObjectIdentifiers(SerializableStringCollection identifiers)

Parameters

identifiers SerializableStringCollection

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

Returns

VMwareDatastoreCollection

The datastores with the specified managed object identifiers.

FindByName(string)

Returns the datastore with the specified name, or null if no datastore with that name exists within the collection.

public VMwareDatastore FindByName(string name)

Parameters

name string

The name of the datastore to find.

Returns

VMwareDatastore

The CENTREL.XIA.Configuration.Types.VMwareDatastore with the specified name.

Sort()

Sorts the values in the collection.

public void Sort()