WebSiteOperationsExtensions.CreateAsync Method

Definition

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 http://msdn.microsoft.com/en-us/library/windowsazure/dn166986.aspx for more information)

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteCreateResponse> CreateAsync (this Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations operations, string webSpaceName, Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteCreateParameters parameters);
static member CreateAsync : Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations * string * Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteCreateParameters -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteCreateResponse>
<Extension()>
Public Function CreateAsync (operations As IWebSiteOperations, webSpaceName As String, parameters As WebSiteCreateParameters) As Task(Of WebSiteCreateResponse)

Parameters

operations
IWebSiteOperations

Reference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.

webSpaceName
String

Required. The name of the web space.

parameters
WebSiteCreateParameters

Required. Parameters supplied to the Create Web Site operation.

Returns

The Create Web Site operation response.

Applies to