Class AzureLocationCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of Azure locations.
public class AzureLocationCollection : Collection<AzureLocation>, IList<AzureLocation>, ICollection<AzureLocation>, IList, ICollection, IReadOnlyList<AzureLocation>, IReadOnlyCollection<AzureLocation>, IEnumerable<AzureLocation>, IEnumerable
- Inheritance
-
AzureLocationCollection
- Implements
- Inherited Members
Constructors
AzureLocationCollection()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.AzureLocationCollection class.
public AzureLocationCollection()
Methods
ExistsByName(string)
Determines whether a CENTREL.XIA.Configuration.Types.AzureLocation with the specified name exists within the collection.
public bool ExistsByName(string name)
Parameters
name
stringThe name of the CENTREL.XIA.Configuration.Types.AzureLocation to locate.
Returns
- bool
A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.AzureLocation with the specified name exists within the collection.
FindByDisplayName(string)
Returns the CENTREL.XIA.Configuration.Types.AzureLocation with the specified display name, or null if no CENTREL.XIA.Configuration.Types.AzureLocation with that display name is found.
public AzureLocation FindByDisplayName(string displayName)
Parameters
displayName
stringThe display name of the CENTREL.XIA.Configuration.Types.AzureLocation to locate.
Returns
- AzureLocation
The CENTREL.XIA.Configuration.Types.AzureLocation with the specified display name.
FindByName(string)
Returns the CENTREL.XIA.Configuration.Types.AzureLocation with the specified name, or null if no CENTREL.XIA.Configuration.Types.AzureLocation with that name is found.
public AzureLocation FindByName(string name)
Parameters
name
stringThe name of the CENTREL.XIA.Configuration.Types.AzureLocation to locate.
Returns
- AzureLocation
The CENTREL.XIA.Configuration.Types.AzureLocation with the specified name.
FindByNames(SerializableStringCollection)
Returns a collection of CENTREL.XIA.Configuration.Types.AzureLocation objects with the specified names.
public AzureLocationCollection FindByNames(SerializableStringCollection names)
Parameters
names
SerializableStringCollectionThe names of the CENTREL.XIA.Configuration.Types.AzureLocation objects to locate.
Returns
- AzureLocationCollection
A collection of CENTREL.XIA.Configuration.Types.AzureLocation objects with the specified names.
ResolveDisplayName(string)
Returns the display name for the location with the specified name. If the location cannot be resolved then the name is returned.
public string ResolveDisplayName(string name)
Parameters
name
stringThe name of the location - for example "centralus".
Returns
- string
The display name of the location - for example "Central US".
ResolveName(string)
Returns the name for the location with the specified display name. If the location cannot be resolved then the display name is returned.
public string ResolveName(string displayName)
Parameters
displayName
stringThe display name of the location - for example "Central US".
Returns
- string
The name of the location - for example "centralus".
Sort()
Sorts the values in the collection.
public void Sort()