HostedServiceOperationsExtensions.CheckNameAvailabilityAsync Method (IHostedServiceOperations, String)
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
public static Task<HostedServiceCheckNameAvailabilityResponse> CheckNameAvailabilityAsync(
this IHostedServiceOperations operations,
string serviceName
)
public:
[ExtensionAttribute]
static Task<HostedServiceCheckNameAvailabilityResponse^>^ CheckNameAvailabilityAsync(
IHostedServiceOperations^ operations,
String^ serviceName
)
static member CheckNameAvailabilityAsync :
operations:IHostedServiceOperations *
serviceName:string -> Task<HostedServiceCheckNameAvailabilityResponse>
<ExtensionAttribute>
Public Shared Function CheckNameAvailabilityAsync (
operations As IHostedServiceOperations,
serviceName As String
) As Task(Of HostedServiceCheckNameAvailabilityResponse)
Parameters
operations
Type: Microsoft.WindowsAzure.Management.Compute.IHostedServiceOperationsThe IHostedServiceOperations object that specifies the cloud service operations.
serviceName
Type: System.StringThe name of the cloud service that you would like to use.
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
HostedServiceOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top