Share via


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

DenyAssignmentsOperationsExtensions.GetByIdAsync 方法

定义

按 ID 获取拒绝分配。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.DenyAssignmentInner> GetByIdAsync (this Microsoft.Azure.Management.Graph.RBAC.Fluent.IDenyAssignmentsOperations operations, string denyAssignmentId, System.Threading.CancellationToken cancellationToken = default);
static member GetByIdAsync : Microsoft.Azure.Management.Graph.RBAC.Fluent.IDenyAssignmentsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.DenyAssignmentInner>
<Extension()>
Public Function GetByIdAsync (operations As IDenyAssignmentsOperations, denyAssignmentId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DenyAssignmentInner)

参数

operations
IDenyAssignmentsOperations

此扩展方法的操作组。

denyAssignmentId
String

完全限定的拒绝分配 ID。 例如,使用 /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} 格式进行订阅级别拒绝分配,或将 /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} 用于租户级别拒绝分配。

cancellationToken
CancellationToken

取消标记。

返回

适用于