Partager via


IRoleAssignmentOperations.CreateAsync Méthode

Définition

Créez une attribution de rôle.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateResult> CreateAsync (string scope, Guid roleAssignmentName, Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : string * Guid * Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateResult>
Public Function CreateAsync (scope As String, roleAssignmentName As Guid, parameters As RoleAssignmentCreateParameters, cancellationToken As CancellationToken) As Task(Of RoleAssignmentCreateResult)

Paramètres

scope
String

Portée.

roleAssignmentName
Guid

Nom de l’attribution de rôle.

parameters
RoleAssignmentCreateParameters

Attribution de rôle.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Résultats de la création des attributions de rôle

S’applique à