Compartir a través de


RoleAssignmentsClient.CheckPrincipalAccessAsync Método

Definición

Compruebe si el principalId especificado tiene acceso para realizar una lista de acciones en un ámbito determinado.

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))

Parámetros

subject
SubjectInfo

Detalles del asunto.

actions
IEnumerable<RequiredAction>

Lista de acciones.

scope
String

Ámbito en el que se realiza la comprobación del acceso.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Se aplica a