WebSiteOperationsExtensions.RestartAsync Method

Definition

You can restart a web site by issuing an HTTP POST request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn236425.aspx for more information)

public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> RestartAsync (this Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations operations, string webSpaceName, string webSiteName);
static member RestartAsync : Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations * string * string -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function RestartAsync (operations As IWebSiteOperations, webSpaceName As String, webSiteName As String) As Task(Of AzureOperationResponse)

Parameters

operations
IWebSiteOperations

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

webSpaceName
String

Required. The name of the web space.

webSiteName
String

Required. The name of the web site.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to