IWebSiteOperations.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteCreateResponse> CreateAsync (string webSpaceName, Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteCreateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : string * Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteCreateResponse>
Public Function CreateAsync (webSpaceName As String, parameters As WebSiteCreateParameters, cancellationToken As CancellationToken) As Task(Of WebSiteCreateResponse)
Parameters
- webSpaceName
- String
The name of the web space.
- parameters
- WebSiteCreateParameters
Parameters supplied to the Create Web Site operation.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Create Web Site operation response.
Applies to
Azure SDK for .NET