共用方式為


RoleAssignmentsOperationsExtensions.Get 方法

定義

依範圍和名稱取得角色指派。

public static Microsoft.Azure.Management.Authorization.Models.RoleAssignment Get (this Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations operations, string scope, string roleAssignmentName, string tenantId = default);
static member Get : Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations * string * string * string -> Microsoft.Azure.Management.Authorization.Models.RoleAssignment
<Extension()>
Public Function Get (operations As IRoleAssignmentsOperations, scope As String, roleAssignmentName As String, Optional tenantId As String = Nothing) As RoleAssignment

參數

operations
IRoleAssignmentsOperations

這個擴充方法的作業群組。

scope
String

作業或資源的範圍。 有效的範圍包括:訂用帳戶 (格式:'/subscriptions/{subscriptionId}') , 資源群組 (格式:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}',或資源 (格式:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'

roleAssignmentName
String

角色指派的名稱。 它可以是任何有效的 GUID。

tenantId
String

跨租使用者要求的租使用者識別碼

傳回

適用於