SecurityWebService.HasPermissionByTokenList 方法
返回列出了所提供参数的权限计算。
命名空间: Microsoft.TeamFoundation.Server.Core.WebServices
程序集: Microsoft.TeamFoundation.Server.Core(在 Microsoft.TeamFoundation.Server.Core.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
命名空间此查询以打开。
- tokens
类型:System.Collections.Generic.List<String>
为选定的标记。
- descriptor
类型:Microsoft.VisualStudio.Services.Identity.IdentityDescriptor
为选定的标识。
- requestedPermissions
类型:System.Int32
请求的权限。
- alwaysAllowAdministrators
类型:System.Boolean
如果此选项卡应始终使管理员,则为 true。
返回值
类型:System.Collections.Generic.List<Boolean>
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。