共用方式為


IAppServicePlansOperations.RestartWebAppsWithHttpMessagesAsync 方法

定義

重新開機App Service方案中的所有應用程式。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> RestartWebAppsWithHttpMessagesAsync (string resourceGroupName, string name, bool? softRestart = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RestartWebAppsWithHttpMessagesAsync : string * string * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function RestartWebAppsWithHttpMessagesAsync (resourceGroupName As String, name As String, Optional softRestart As Nullable(Of Boolean) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

參數

resourceGroupName
String

資源所屬資源群組的名稱。

name
String

App Service 方案的名稱。

softRestart
Nullable<Boolean>

指定 < 程式碼 true < /程式碼 >> 以執行軟重新開機、套用組態設定,並視需要重新開機應用程式。 預設值為 < false < /程式碼 >> ,一律會重新開機並重新布建應用程式

customHeaders
Dictionary<String,List<String>>

要新增至要求的標頭。

cancellationToken
CancellationToken

取消語彙基元。

傳回

例外狀況

當作業傳回不正確狀態碼時擲回

當作業傳回不正確狀態碼時擲回

當必要參數為 null 時擲回

備註

重新開機App Service方案中所有應用程式的描述。

適用於