你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RoleAssignmentsClient.CheckPrincipalAccess 方法

定义

检查给定的 principalId 是否有权在给定范围内执行操作列表。

public virtual Azure.Response<Azure.Analytics.Synapse.AccessControl.Models.CheckPrincipalAccessResponse> CheckPrincipalAccess (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 CheckPrincipalAccess : Azure.Analytics.Synapse.AccessControl.Models.SubjectInfo * seq<Azure.Analytics.Synapse.AccessControl.Models.RequiredAction> * string * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.Synapse.AccessControl.Models.CheckPrincipalAccessResponse>
override this.CheckPrincipalAccess : Azure.Analytics.Synapse.AccessControl.Models.SubjectInfo * seq<Azure.Analytics.Synapse.AccessControl.Models.RequiredAction> * string * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.Synapse.AccessControl.Models.CheckPrincipalAccessResponse>
Public Overridable Function CheckPrincipalAccess (subject As SubjectInfo, actions As IEnumerable(Of RequiredAction), scope As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CheckPrincipalAccessResponse)

参数

subject
SubjectInfo

主题详细信息。

actions
IEnumerable<RequiredAction>

操作列表。

scope
String

完成检查访问的范围。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于