Share via


WebSiteOperationsExtensions.IsHostnameAvailableAsync Method

Determines if a host name is available.

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

Usage

'Usage
Dim operations As IWebSiteOperations
Dim webSiteName As String
Dim returnValue As Task(Of WebSiteIsHostnameAvailableResponse)

returnValue = WebSiteOperationsExtensions.IsHostnameAvailableAsync(operations, webSiteName)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function IsHostnameAvailableAsync ( _
    operations As IWebSiteOperations, _
    webSiteName As String _
) As Task(Of WebSiteIsHostnameAvailableResponse)
[ExtensionAttribute] 
public static Task<WebSiteIsHostnameAvailableResponse> IsHostnameAvailableAsync (
    IWebSiteOperations operations,
    string webSiteName
)
[ExtensionAttribute] 
public:
static Task<WebSiteIsHostnameAvailableResponse^>^ IsHostnameAvailableAsync (
    IWebSiteOperations^ operations, 
    String^ webSiteName
)
/** @attribute ExtensionAttribute() */ 
public static Task<WebSiteIsHostnameAvailableResponse> IsHostnameAvailableAsync (
    IWebSiteOperations operations, 
    String webSiteName
)
ExtensionAttribute 
public static function IsHostnameAvailableAsync (
    operations : IWebSiteOperations, 
    webSiteName : String
) : Task<WebSiteIsHostnameAvailableResponse>

Parameters

  • operations
    Reference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
  • webSiteName
    Required. The name of the web site.

Return Value

The Is Hostname Available Web Site operation response.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

WebSiteOperationsExtensions Class
WebSiteOperationsExtensions Members
Microsoft.WindowsAzure Namespace