你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IDefaultAccountsOperations.RemoveWithHttpMessagesAsync 方法

定义

从范围中删除默认帐户。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> RemoveWithHttpMessagesAsync(Guid scopeTenantId, string scopeType, string scope = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveWithHttpMessagesAsync : Guid * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function RemoveWithHttpMessagesAsync (scopeTenantId As Guid, scopeType As String, Optional scope As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

参数

scopeTenantId
Guid

租户 ID。

scopeType
String

默认帐户的范围。 可能的值包括:“Tenant”、“Subscription”

scope
String

范围对象的 ID,例如,如果作用域为“Subscription”,则为该订阅的 ID。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

例外

操作返回无效状态代码时引发

当所需的参数为 null 时引发

注解

从范围中删除默认帐户。

适用于