Compartilhar via


OAuth2PermissionGrantOperationsExtensions.CreateAsync Método

Definição

Concede permissões OAuth2 para as IDs de recurso relevantes de um aplicativo.

public static System.Threading.Tasks.Task<Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant> CreateAsync (this Microsoft.Azure.Graph.RBAC.IOAuth2PermissionGrantOperations operations, Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant body = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Graph.RBAC.IOAuth2PermissionGrantOperations * Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant>
<Extension()>
Public Function CreateAsync (operations As IOAuth2PermissionGrantOperations, Optional body As OAuth2PermissionGrant = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of OAuth2PermissionGrant)

Parâmetros

operations
IOAuth2PermissionGrantOperations

O grupo de operações para esse método de extensão.

body
OAuth2PermissionGrant

A ID de objeto da entidade de serviço do aplicativo relevante e a ID de objeto da entidade de serviço que você deseja conceder.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a