共用方式為


IDomainsOperations.DeleteWithHttpMessagesAsync 方法

定義

刪除網域。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeleteWithHttpMessagesAsync (string resourceGroupName, string domainName, bool? forceHardDeleteDomain = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteWithHttpMessagesAsync : 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 DeleteWithHttpMessagesAsync (resourceGroupName As String, domainName As String, Optional forceHardDeleteDomain 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

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

domainName
String

功能變數名稱。

forceHardDeleteDomain
Nullable<Boolean>

指定 < 程式碼 > true < /code > 以立即刪除網域。 預設值為 <> false < /code > ,會在 24 小時後刪除網域。

customHeaders
Dictionary<String,List<String>>

將新增至要求的標頭。

cancellationToken
CancellationToken

取消語彙基元。

傳回

例外狀況

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

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

當必要參數為 Null 時擲回

備註

刪除網域的描述。

適用於