共用方式為


SecurityWebService.HasPermissionByTokenList 方法

傳回清單具有所提供引數的權限評估。

命名空間:  Microsoft.TeamFoundation.Framework.Server.WebServices
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
<WebMethodAttribute> _
Public Function HasPermissionByTokenList ( _
    namespaceId As Guid, _
    tokens As List(Of String), _
    descriptor As IdentityDescriptor, _
    requestedPermissions As Integer, _
    alwaysAllowAdministrators As Boolean _
) As List(Of Boolean)
[WebMethodAttribute]
public List<bool> HasPermissionByTokenList(
    Guid namespaceId,
    List<string> tokens,
    IdentityDescriptor descriptor,
    int requestedPermissions,
    bool alwaysAllowAdministrators
)

參數

  • namespaceId
    型別:System.Guid
    命名空間中的這個查詢也是如此。
  • requestedPermissions
    型別:System.Int32
    要求的使用權限。
  • alwaysAllowAdministrators
    型別:System.Boolean
    如果這項檢查應該永遠允許系統管理員,則為 true。

傳回值

型別:System.Collections.Generic.List<Boolean>

.NET Framework 安全性

請參閱

參考

SecurityWebService 類別

Microsoft.TeamFoundation.Framework.Server.WebServices 命名空間