IWebSiteOperations.CreateAsync Method (String, WebSiteCreateParameters, CancellationToken)
Asynchronously creates a website.
Namespace: Microsoft.WindowsAzure.Management.WebSites
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Syntax
Task<WebSiteCreateResponse> CreateAsync(
string webSpaceName,
WebSiteCreateParameters parameters,
CancellationToken cancellationToken
)
Task<WebSiteCreateResponse^>^ CreateAsync(
String^ webSpaceName,
WebSiteCreateParameters^ parameters,
CancellationToken cancellationToken
)
abstract CreateAsync :
webSpaceName:string *
parameters:WebSiteCreateParameters *
cancellationToken:CancellationToken -> Task<WebSiteCreateResponse>
Function CreateAsync (
webSpaceName As String,
parameters As WebSiteCreateParameters,
cancellationToken As CancellationToken
) As Task(Of WebSiteCreateResponse)
Parameters
webSpaceName
Type: System.StringThe name of the web space.
parameters
Type: Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteCreateParametersThe WebSiteCreateParameters object that contains the parameters that are used to create a website.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<WebSiteCreateResponse>
An WebSiteCreateResponse object that contains the status of the operation.
Remarks
For more information about creating a website, see Create a Website.
See Also
IWebSiteOperations Interface
Microsoft.WindowsAzure.Management.WebSites Namespace
Return to top