IHostedServiceOperations.CheckNameAvailabilityAsync Method (String, CancellationToken)
Asynchronously checks for the availability of the specified cloud service name.
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Syntax
Task<HostedServiceCheckNameAvailabilityResponse> CheckNameAvailabilityAsync(
string serviceName,
CancellationToken cancellationToken
)
Task<HostedServiceCheckNameAvailabilityResponse^>^ CheckNameAvailabilityAsync(
String^ serviceName,
CancellationToken cancellationToken
)
abstract CheckNameAvailabilityAsync :
serviceName:string *
cancellationToken:CancellationToken -> Task<HostedServiceCheckNameAvailabilityResponse>
Function CheckNameAvailabilityAsync (
serviceName As String,
cancellationToken As CancellationToken
) As Task(Of HostedServiceCheckNameAvailabilityResponse)
Parameters
serviceName
Type: System.StringThe name of the cloud service that you would like to use.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<HostedServiceCheckNameAvailabilityResponse>
The HostedServiceCheckNameAvailabilityResponse object that indicates whether the name is available.
Remarks
For more information about checking name availability, see Check Cloud Service Name Availability.
See Also
IHostedServiceOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top