IStorageAccountOperations.CheckNameAvailabilityAsync Method (String, CancellationToken)

 

Asynchronously checks for the availability of the specified storage account name.

Namespace:   Microsoft.WindowsAzure.Management.Storage
Assembly:  Microsoft.WindowsAzure.Management.Storage (in Microsoft.WindowsAzure.Management.Storage.dll)

Syntax

Task<CheckNameAvailabilityResponse> CheckNameAvailabilityAsync(
    string accountName,
    CancellationToken cancellationToken
)
Task<CheckNameAvailabilityResponse^>^ CheckNameAvailabilityAsync(
    String^ accountName,
    CancellationToken cancellationToken
)
abstract CheckNameAvailabilityAsync : 
        accountName:string *
        cancellationToken:CancellationToken -> Task<CheckNameAvailabilityResponse>
Function CheckNameAvailabilityAsync (
    accountName As String,
    cancellationToken As CancellationToken
) As Task(Of CheckNameAvailabilityResponse)

Parameters

  • serviceName
    The name of the storage account that you would like to use.

Return Value

Type: System.Threading.Tasks.Task<CheckNameAvailabilityResponse>

The CheckNameAvailabilityResponse object that indicates whether the name is available.

Remarks

For more information about checking name availability, see Check Storage Account Name Availability.

See Also

IStorageAccountOperations Interface
Microsoft.WindowsAzure.Management.Storage Namespace

Return to top