WebSiteOperationsExtensions.RestartAsync Method (IWebSiteOperations, String, String)
You can restart a web site by issuing an HTTP POST request. (see https://msdn.microsoft.com/en-us/library/windowsazure/dn236425.aspx for more information)
Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Syntax
public static Task<OperationResponse> RestartAsync(
this IWebSiteOperations operations,
string webSpaceName,
string webSiteName
)
public:
[ExtensionAttribute]
static Task<OperationResponse^>^ RestartAsync(
IWebSiteOperations^ operations,
String^ webSpaceName,
String^ webSiteName
)
static member RestartAsync :
operations:IWebSiteOperations *
webSpaceName:string *
webSiteName:string -> Task<OperationResponse>
<ExtensionAttribute>
Public Shared Function RestartAsync (
operations As IWebSiteOperations,
webSpaceName As String,
webSiteName As String
) As Task(Of OperationResponse)
Parameters
operations
Type: Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperationsReference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
webSpaceName
Type: System.StringRequired. The name of the web space.
webSiteName
Type: System.StringRequired. The name of the web site.
Return Value
Type: System.Threading.Tasks.Task<OperationResponse>
A standard service response including an HTTP status code and request ID.
See Also
WebSiteOperationsExtensions Class
Microsoft.WindowsAzure Namespace
Return to top