RoleAssignmentsClient.CheckPrincipalAccessAsync 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.
Check if the given principalId has access to perform list of actions at a given scope.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.Synapse.AccessControl.Models.CheckPrincipalAccessResponse>> CheckPrincipalAccessAsync (Azure.Analytics.Synapse.AccessControl.Models.SubjectInfo subject, System.Collections.Generic.IEnumerable<Azure.Analytics.Synapse.AccessControl.Models.RequiredAction> actions, string scope, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckPrincipalAccessAsync : Azure.Analytics.Synapse.AccessControl.Models.SubjectInfo * seq<Azure.Analytics.Synapse.AccessControl.Models.RequiredAction> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.Synapse.AccessControl.Models.CheckPrincipalAccessResponse>>
override this.CheckPrincipalAccessAsync : Azure.Analytics.Synapse.AccessControl.Models.SubjectInfo * seq<Azure.Analytics.Synapse.AccessControl.Models.RequiredAction> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.Synapse.AccessControl.Models.CheckPrincipalAccessResponse>>
Public Overridable Function CheckPrincipalAccessAsync (subject As SubjectInfo, actions As IEnumerable(Of RequiredAction), scope As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CheckPrincipalAccessResponse))
Parameters
- subject
- SubjectInfo
Subject details.
- actions
- IEnumerable<RequiredAction>
List of actions.
- scope
- String
Scope at which the check access is done.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET