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 命名空间