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 http://msdn.microsoft.com/en-us/library/windowsazure/dn166986.aspx for more information)
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
public static Task<WebSiteCreateResponse> CreateAsync( this IWebSiteOperations operations, string webSpaceName, WebSiteCreateParameters parameters )
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations
Reference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
- webSpaceName
-
Type:
System.String
Required. The name of the web space.
- parameters
-
Type:
Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteCreateParameters
Required. Parameters supplied to the Create Web Site operation.
Return Value
Type: System.Threading.Tasks.Task<WebSiteCreateResponse>The Create Web Site operation response.
Show: