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

RoleAssignmentsImpl.IRoleAssignments.GetByScopeAsync 方法

定义

根据范围和名称获取有关角色分配的信息。

System.Threading.Tasks.Task<Microsoft.Azure.Management.Graph.RBAC.Fluent.IRoleAssignment> IRoleAssignments.GetByScopeAsync (string scope, string name, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.Azure.Management.Graph.RBAC.Fluent.IRoleAssignments.GetByScopeAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Graph.RBAC.Fluent.IRoleAssignment>
override this.Microsoft.Azure.Management.Graph.RBAC.Fluent.IRoleAssignments.GetByScopeAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Graph.RBAC.Fluent.IRoleAssignment>
Function GetByScopeAsync (scope As String, name As String, cancellationToken As CancellationToken) As Task(Of IRoleAssignment) Implements IRoleAssignments.GetByScopeAsync

参数

scope
String

角色分配的范围。

name
String

角色分配的名称。

cancellationToken
CancellationToken

返回

实现

适用于