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

AuthorizationExtensions.GetRoleAssignments 方法

定义

重载

GetRoleAssignments(ArmClient, ResourceIdentifier)

获取 ArmResource 中 RoleAssignmentResources 的集合。

GetRoleAssignments(ArmResource)

获取 ArmResource 中 RoleAssignmentResources 的集合。

GetRoleAssignments(ArmClient, ResourceIdentifier)

获取 ArmResource 中 RoleAssignmentResources 的集合。

public static Azure.ResourceManager.Authorization.RoleAssignmentCollection GetRoleAssignments (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope);
static member GetRoleAssignments : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Authorization.RoleAssignmentCollection
<Extension()>
Public Function GetRoleAssignments (client As ArmClient, scope As ResourceIdentifier) As RoleAssignmentCollection

参数

client
ArmClient

方法 ArmClient 将对其执行的实例。

scope
ResourceIdentifier

资源将应用于的范围。

返回

一个 对象,该对象表示 RoleAssignmentResources 的集合及其在 RoleAssignmentResource 上的操作。

适用于

GetRoleAssignments(ArmResource)

获取 ArmResource 中 RoleAssignmentResources 的集合。

public static Azure.ResourceManager.Authorization.RoleAssignmentCollection GetRoleAssignments (this Azure.ResourceManager.ArmResource armResource);
static member GetRoleAssignments : Azure.ResourceManager.ArmResource -> Azure.ResourceManager.Authorization.RoleAssignmentCollection
<Extension()>
Public Function GetRoleAssignments (armResource As ArmResource) As RoleAssignmentCollection

参数

armResource
ArmResource

方法 ArmResource 将对其执行的实例。

返回

一个 对象,该对象表示 RoleAssignmentResources 的集合及其在 RoleAssignmentResource 上的操作。

适用于