共用方式為


RoleAssignmentsOperationsExtensions.DeleteById 方法

定義

依識別碼刪除角色指派。

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

參數

operations
IRoleAssignmentsOperations

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

roleAssignmentId
String

角色指派的完整識別碼,包括範圍、資源名稱和資源類型。 格式:/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}。 範例:/subscriptions/ < SUB_ID > /resourcegroups/ < RESOURCE_GROUP > /providers/Microsoft.Authorization/roleAssignments/ < ROLE_ASSIGNMENT_NAME>

tenantId
String

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

傳回

適用於