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