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.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)
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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for .NET