共用方式為


SecurityHttpClient.HasPermissionAsync 方法

命名空間:  Microsoft.VisualStudio.Services.Security.Client
組件:  Microsoft.VisualStudio.Services.WebApi (在 Microsoft.VisualStudio.Services.WebApi.dll 中)

語法

'宣告
Public Function HasPermissionAsync ( _
    securityNamespaceId As Guid, _
    token As String, _
    requestedPermissions As Integer, _
    alwaysAllowAdministrators As Boolean, _
    userState As Object _
) As Task(Of Boolean)
public Task<bool> HasPermissionAsync(
    Guid securityNamespaceId,
    string token,
    int requestedPermissions,
    bool alwaysAllowAdministrators,
    Object userState
)

參數

傳回值

類型:System.Threading.Tasks.Task<Boolean>

.NET Framework 安全性

請參閱

參考

SecurityHttpClient 類別

Microsoft.VisualStudio.Services.Security.Client 命名空間