OAuth2PermissionGrantOperationsExtensions.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Grants OAuth2 permissions for the relevant resource Ids of an app.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.OAuth2PermissionGrantInner> CreateAsync (this Microsoft.Azure.Management.Graph.RBAC.Fluent.IOAuth2PermissionGrantOperations operations, Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.OAuth2PermissionGrantInner body = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Graph.RBAC.Fluent.IOAuth2PermissionGrantOperations * Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.OAuth2PermissionGrantInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.OAuth2PermissionGrantInner>
<Extension()>
Public Function CreateAsync (operations As IOAuth2PermissionGrantOperations, Optional body As OAuth2PermissionGrantInner = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of OAuth2PermissionGrantInner)
Parameters
- operations
- IOAuth2PermissionGrantOperations
The operations group for this extension method.
The relevant app Service Principal Object Id and the Service Principal Object Id you want to grant.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по