Share via


WebSiteOperationsExtensions.IsHostnameAvailable 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 WebSiteIsHostnameAvailableResponse

returnValue = WebSiteOperationsExtensions.IsHostnameAvailable(operations, webSiteName)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function IsHostnameAvailable ( _
    operations As IWebSiteOperations, _
    webSiteName As String _
) As WebSiteIsHostnameAvailableResponse
[ExtensionAttribute] 
public static WebSiteIsHostnameAvailableResponse IsHostnameAvailable (
    IWebSiteOperations operations,
    string webSiteName
)
[ExtensionAttribute] 
public:
static WebSiteIsHostnameAvailableResponse^ IsHostnameAvailable (
    IWebSiteOperations^ operations, 
    String^ webSiteName
)
/** @attribute ExtensionAttribute() */ 
public static WebSiteIsHostnameAvailableResponse IsHostnameAvailable (
    IWebSiteOperations operations, 
    String webSiteName
)
ExtensionAttribute 
public static function IsHostnameAvailable (
    operations : IWebSiteOperations, 
    webSiteName : String
) : 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