RoleAssignmentsOperationsExtensions.GetByIdAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Een roltoewijzing ophalen op id.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignment> GetByIdAsync(this Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations operations, string roleAssignmentId, string tenantId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetByIdAsync : Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignment>
<Extension()>
Public Function GetByIdAsync (operations As IRoleAssignmentsOperations, roleAssignmentId As String, Optional tenantId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RoleAssignment)
Parameters
- operations
- IRoleAssignmentsOperations
De bewerkingsgroep voor deze extensiemethode.
- roleAssignmentId
- String
De volledig gekwalificeerde id van de roltoewijzing, inclusief bereik, resourcenaam en resourcetype. Indeling: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Voorbeeld: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>
- tenantId
- String
Tenant-id voor aanvraag voor meerdere tenants
- cancellationToken
- CancellationToken
Het annuleringstoken.
Retouren
Van toepassing op
Azure SDK for .NET