IStorageAccountOperations.CheckNameAvailabilityAsync Method (String, CancellationToken)
Asynchronously checks for the availability of the specified storage account name.
Assembly: Microsoft.WindowsAzure.Management.Storage (in Microsoft.WindowsAzure.Management.Storage.dll)
Task<CheckNameAvailabilityResponse> CheckNameAvailabilityAsync(
string accountName,
CancellationToken cancellationToken
)
Parameters
- serviceName
The name of the storage account that you would like to use.
- cancellationToken
-
Type:
System.Threading.CancellationToken
The cancellation token.
Return Value
Type: System.Threading.Tasks.Task<CheckNameAvailabilityResponse>The CheckNameAvailabilityResponse object that indicates whether the name is available.
For more information about checking name availability, see Check Storage Account Name Availability.
Show: