共用方式為


SecurityWebService.HasPermissionByDescriptorList 方法

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

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

語法

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

參數

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

傳回值

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

.NET Framework 安全性

請參閱

參考

SecurityWebService 類別

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