Class AzureResourceGroupCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of Azure resource groups.
public class AzureResourceGroupCollection : Collection<AzureResourceGroup>, IList<AzureResourceGroup>, ICollection<AzureResourceGroup>, IList, ICollection, IReadOnlyList<AzureResourceGroup>, IReadOnlyCollection<AzureResourceGroup>, IEnumerable<AzureResourceGroup>, IEnumerable
- Inheritance
-
AzureResourceGroupCollection
- Implements
- Inherited Members
Constructors
AzureResourceGroupCollection()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.AzureResourceGroupCollection class.
public AzureResourceGroupCollection()
Methods
ExistsById(string)
Determines whether a CENTREL.XIA.Configuration.Types.AzureResourceGroup with the specified identifier exists within the collection.
public bool ExistsById(string id)
Parameters
id
stringThe identifier of the CENTREL.XIA.Configuration.Types.AzureResourceGroup to locate - for example "/subscriptions/5477ee1c-ca9c-4f09-9f48-73e7766c688a/resourceGroups/WebServers".
Returns
- bool
A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.AzureResourceGroup with the specified identifier exists within the collection.
ExistsByIdentifier(Guid)
Determines whether a CENTREL.XIA.Configuration.Types.AzureResourceGroup with the specified identifier exists within the collection.
public bool ExistsByIdentifier(Guid identifier)
Parameters
identifier
GuidThe identifier of the CENTREL.XIA.Configuration.Types.AzureResourceGroup to locate in GUID format.
Returns
- bool
A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.AzureResourceGroup with the specified identifier exists within the collection.
FindById(string)
Returns the CENTREL.XIA.Configuration.Types.AzureResourceGroup with the specified identifier, or null if no CENTREL.XIA.Configuration.Types.AzureResourceGroup with that identifier is found.
public AzureResourceGroup FindById(string id)
Parameters
id
stringThe identifier of the CENTREL.XIA.Configuration.Types.AzureResourceGroup to locate - for example "/subscriptions/5477ee1c-ca9c-4f09-9f48-73e7766c688a/resourceGroups/WebServers".
Returns
- AzureResourceGroup
The CENTREL.XIA.Configuration.Types.AzureResourceGroup with the specified identifier.
FindByIdentifier(Guid)
Returns the CENTREL.XIA.Configuration.Types.AzureResourceGroup with the specified identifier, or null if no CENTREL.XIA.Configuration.Types.AzureResourceGroup with that identifier is found.
public AzureResourceGroup FindByIdentifier(Guid identifier)
Parameters
identifier
GuidThe identifier of the CENTREL.XIA.Configuration.Types.AzureResourceGroup to locate in GUID format.
Returns
- AzureResourceGroup
The CENTREL.XIA.Configuration.Types.AzureResourceGroup with the specified identifier.
FindByName(string)
Returns a collection of resource groups with the specified name. Multiple resource groups with the same name can exist if located within different subscriptions.
public AzureResourceGroupCollection FindByName(string name)
Parameters
name
stringThe name of the CENTREL.XIA.Configuration.Types.AzureResourceGroup to locate.
Returns
- AzureResourceGroupCollection
A CENTREL.XIA.Configuration.Types.AzureResourceGroupCollection containing the resource groups with the specified name.
FindByName(string, string)
Returns the resource group with the specified name in the specified subscription, or null if no resource group with that name is found within the subscription.
public AzureResourceGroup FindByName(string name, string subscriptionName)
Parameters
name
stringThe name of the CENTREL.XIA.Configuration.Types.AzureResourceGroup to locate.
subscriptionName
stringThe name of the subscription in which to search.
Returns
- AzureResourceGroup
The CENTREL.XIA.Configuration.Types.AzureResourceGroup with the specified name in the specified subscription.
FindBySubscription(AzureSubscription)
Returns a collection of resource groups that reside within the specified subscription.
public AzureResourceGroupCollection FindBySubscription(AzureSubscription subscription)
Parameters
subscription
AzureSubscriptionThe name of the subscription for which the resource groups are to be located.
Returns
- AzureResourceGroupCollection
A CENTREL.XIA.Configuration.Types.AzureResourceGroupCollection containing the resource groups that reside within the specified subscription.
ResolveDisplayName(string)
Returns the display name of the resource group with the specified identifier.
public string ResolveDisplayName(string id)
Parameters
id
stringThe resource identifier of the CENTREL.XIA.Configuration.Types.AzureResourceGroup to locate - for example "/subscriptions/5477ee1c-ca9c-4f09-9f48-73e7766c688a/resourceGroups/WebServers".
Returns
- string
The display name of the resource group with the specified identifier.
Sort()
Sorts the values in the collection.
public void Sort()