Table of Contents

Class AzureResourceCollection

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

Represents a collection of Azure resources.

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

Constructors

AzureResourceCollection()

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

public AzureResourceCollection()

Methods

ExistsById(string)

Determines whether a CENTREL.XIA.Configuration.Types.AzureResource with the specified identifier exists in the collection.

public bool ExistsById(string id)

Parameters

id string

The identifier of the CENTREL.XIA.Configuration.Types.AzureResource to locate.

Returns

bool

A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.AzureResource with the specified identifier exists in the collection.

ExistsByIdentifier(Guid)

Determines whether a CENTREL.XIA.Configuration.Types.AzureResource with the specified identifier exists in the collection.

public bool ExistsByIdentifier(Guid identifier)

Parameters

identifier Guid

The identifier of the CENTREL.XIA.Configuration.Types.AzureResource to locate.

Returns

bool

A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.AzureResource with the specified identifier exists in the collection.

ExistsByName(Guid, string, string)

Determines whether a CENTREL.XIA.Configuration.Types.AzureResource with the specified name, subscription identifier, and resource group exists within the collection.

public bool ExistsByName(Guid subscriptionIdentifier, string name, string resourceGroupName)

Parameters

subscriptionIdentifier Guid

The subscription in which the CENTREL.XIA.Configuration.Types.AzureResource to locate resides.

name string

The name of the CENTREL.XIA.Configuration.Types.AzureResource to locate.

resourceGroupName string

The name of the resource group in which the CENTREL.XIA.Configuration.Types.AzureResource to locate resides.

Returns

bool

A System.Boolean that indicates whether a CENTREL.XIA.Configuration.Types.AzureResource with the specified name, subscription identifier, and resource group exists within the collection.

FindById(string)

Returns the CENTREL.XIA.Configuration.Types.AzureResource with the specified identifier, or null if no resource with that identifier is found.

public AzureResource FindById(string id)

Parameters

id string

The identifier of the CENTREL.XIA.Configuration.Types.AzureResource to locate.

Returns

AzureResource

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

FindByIdentifier(Guid)

Returns the CENTREL.XIA.Configuration.Types.AzureResource with the specified identifier, or null if no resource with that identifier is found.

public AzureResource FindByIdentifier(Guid identifier)

Parameters

identifier Guid

The identifier of the CENTREL.XIA.Configuration.Types.AzureResource to locate.

Returns

AzureResource

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

FindByName(Guid, string, string)

Returns the CENTREL.XIA.Configuration.Types.AzureResource with the specified name, subscription identifier, and resource group, or null if no resource is found.

public AzureResource FindByName(Guid subscriptionIdentifier, string resourceGroupName, string name)

Parameters

subscriptionIdentifier Guid

The subscription in which the CENTREL.XIA.Configuration.Types.AzureResource to locate resides.

resourceGroupName string

The name of the resource group in which the CENTREL.XIA.Configuration.Types.AzureResource to locate resides.

name string

The name of the CENTREL.XIA.Configuration.Types.AzureResource to locate.

Returns

AzureResource

The CENTREL.XIA.Configuration.Types.AzureResource with the specified name, subscription identifier, and resource group.

FindByResourceGroup(AzureResourceGroup)

Returns a collection of the CENTREL.XIA.Configuration.Types.AzureResource in the specified resource group.

public AzureResourceCollection FindByResourceGroup(AzureResourceGroup resourceGroup)

Parameters

resourceGroup AzureResourceGroup

The identifier of the CENTREL.XIA.Configuration.Types.AzureResourceGroup in which to locate the resources.

Returns

AzureResourceCollection

A CENTREL.XIA.Configuration.Types.AzureResourceCollection containing the resources in the specified resource group.

FindByResourceType(AzureResourceType)

Returns a collection of the CENTREL.XIA.Configuration.Types.AzureResource of the specified resource type.

public AzureResourceCollection FindByResourceType(AzureResourceType resourceType)

Parameters

resourceType AzureResourceType

The resource type of the resources to locate.

Returns

AzureResourceCollection

A CENTREL.XIA.Configuration.Types.AzureResourceCollection containing the resources of the specified resource type.

FindStorageAccountByName(Guid, string)

Returns the CENTREL.XIA.Configuration.Types.AzureResource that represents the storage account with the specified name and subscription identifier, or null if no resource is found.

public AzureResource FindStorageAccountByName(Guid subscriptionIdentifier, string name)

Parameters

subscriptionIdentifier Guid

The subscription in which the CENTREL.XIA.Configuration.Types.AzureResource to locate resides.

name string

The name of the CENTREL.XIA.Configuration.Types.AzureResource to locate.

Returns

AzureResource

The CENTREL.XIA.Configuration.Types.AzureResource that represents the storage account with the specified name and subscription identifier.

GetResourceReference(string)

Returns an CENTREL.XIA.Configuration.Types.AzureResourceReference for the CENTREL.XIA.Configuration.Types.AzureResource with the specified identifier.

public AzureResourceReference GetResourceReference(string id)

Parameters

id string

The identifier of the CENTREL.XIA.Configuration.Types.AzureResource to locate.

Returns

AzureResourceReference

An CENTREL.XIA.Configuration.Types.AzureResourceReference for the CENTREL.XIA.Configuration.Types.AzureResource with the specified identifier.

GetResourceReferences(SerializableStringCollection)

Returns a CENTREL.XIA.Configuration.Types.AzureResourceReferences object containing references for the CENTREL.XIA.Configuration.Types.AzureResources with the specified identifiers.

public AzureResourceReferences GetResourceReferences(SerializableStringCollection ids)

Parameters

ids SerializableStringCollection

The identifiers of the CENTREL.XIA.Configuration.Types.AzureResources to locate.

Returns

AzureResourceReferences

A CENTREL.XIA.Configuration.Types.AzureResourceReferences object containing references for the CENTREL.XIA.Configuration.Types.AzureResources with the specified identifiers.

ResolveDisplayName(string)

Returns the name of the CENTREL.XIA.Configuration.Types.AzureResource with the specified identifier.

public string ResolveDisplayName(string id)

Parameters

id string

The identifier of the CENTREL.XIA.Configuration.Types.AzureResource to locate.

Returns

string

The identifier of the CENTREL.XIA.Configuration.Types.AzureResource with the specified identifier.

ResolveDisplayNames(SerializableStringCollection)

Returns a CENTREL.Support.SerializableStringCollection containing the display names oft he resources with the specified identifiers.

public SerializableStringCollection ResolveDisplayNames(SerializableStringCollection ids)

Parameters

ids SerializableStringCollection

The identifiers of each CENTREL.XIA.Configuration.Types.AzureResource to resolve.

Returns

SerializableStringCollection

A CENTREL.Support.SerializableStringCollection containing the display names oft he resources with the specified identifiers.

Sort()

Sorts the values in the collection.

public void Sort()