Share via


IWebSiteOperations.RestartAsync Method (String, String, CancellationToken)

 

Asynchronously restarts a website.

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

Syntax

Task<OperationResponse> RestartAsync(
    string webSpaceName,
    string webSiteName,
    CancellationToken cancellationToken
)
Task<OperationResponse^>^ RestartAsync(
    String^ webSpaceName,
    String^ webSiteName,
    CancellationToken cancellationToken
)
abstract RestartAsync : 
        webSpaceName:string *
        webSiteName:string *
        cancellationToken:CancellationToken -> Task<OperationResponse>
Function RestartAsync (
    webSpaceName As String,
    webSiteName As String,
    cancellationToken As CancellationToken
) As Task(Of OperationResponse)

Parameters

Return Value

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

An OperationResponse object that includes an HTTP status code and request ID.

Remarks

For more information about restarting a website, see Restart a Website

See Also

IWebSiteOperations Interface
Microsoft.WindowsAzure.Management.WebSites Namespace

Return to top