Share via


WebSiteOperationsExtensions.CreateAsync Method (IWebSiteOperations, String, WebSiteCreateParameters)

 

You can create a web site by using a POST request that includes the name of the web site and other information in the request body. (see https://msdn.microsoft.com/en-us/library/windowsazure/dn166986.aspx for more information)

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

Syntax

public static Task<WebSiteCreateResponse> CreateAsync(
    this IWebSiteOperations operations,
    string webSpaceName,
    WebSiteCreateParameters parameters
)
public:
[ExtensionAttribute]
static Task<WebSiteCreateResponse^>^ CreateAsync(
    IWebSiteOperations^ operations,
    String^ webSpaceName,
    WebSiteCreateParameters^ parameters
)
static member CreateAsync : 
        operations:IWebSiteOperations *
        webSpaceName:string *
        parameters:WebSiteCreateParameters -> Task<WebSiteCreateResponse>
<ExtensionAttribute>
Public Shared Function CreateAsync (
    operations As IWebSiteOperations,
    webSpaceName As String,
    parameters As WebSiteCreateParameters
) As Task(Of WebSiteCreateResponse)

Parameters

  • webSpaceName
    Type: System.String

    Required. The name of the web space.

Return Value

Type: System.Threading.Tasks.Task<WebSiteCreateResponse>

The Create Web Site operation response.

See Also

WebSiteOperationsExtensions Class
Microsoft.WindowsAzure Namespace

Return to top