SecurityWebService.QueryPermissions 方法

在所有情况下:此方法将查询该标记的权限指定的 (以及位于,则递归指定和下是分层命名空间)。 将返回有关提供或所有标识标识的权限信息,如果将 null 用作标识参数中提供。 IAccessControlLists 对象为标记只返回有信息。 请注意访问控制项在访问控制列表 (acl) 中返回的排序是不确定的。 如果 includeExtendedInfo 是错误的:所有返回的 AccessControlEntry 对象的 ExtendedInfo 属性将为空。 如果 includeExtendedInfo 为 true:所有返回的 AccessControlEntry 对象的 ExtendedInfo 属性将包含一个有效的 ExtendedPermissionInformation 对象的引用。 如果标识参数为 null,此函数将返回其显式或继承的权限的所有标识的权限信息。

命名空间:  Microsoft.TeamFoundation.Server.Core.WebServices
程序集:  Microsoft.TeamFoundation.Server.Core(在 Microsoft.TeamFoundation.Server.Core.dll 中)

语法

声明
<WebMethodAttribute> _
Public Function QueryPermissions ( _
    namespaceId As Guid, _
    token As String, _
    identities As List(Of IdentityDescriptor), _
    includeExtendedInfo As Boolean, _
    recurse As Boolean _
) As List(Of AccessControlListDetails)
[WebMethodAttribute]
public List<AccessControlListDetails> QueryPermissions(
    Guid namespaceId,
    string token,
    List<IdentityDescriptor> identities,
    bool includeExtendedInfo,
    bool recurse
)

参数

  • namespaceId
    类型:System.Guid
    进行这些更改的命名空间。
  • token
    类型:System.String
    查询权限的标记。如果此值为空,所有标记的权限将返回。
  • includeExtendedInfo
    类型:System.Boolean
    包含是否通过附加到所有的 ExtendedPermissionInformation 对象继承的并且有效权限信息 IPermission 对象 true。如果为 false,所有在 AccessControlEntry 对象的 ExtendedInfo 属性将为空。
  • recurse
    类型:System.Boolean
    如果为 true 并且此 funciton 在分层命名空间执行,则在该文件夹下将返回此资源的所有 ACL 和一个。

返回值

类型:System.Collections.Generic.List<AccessControlListDetails>
所有的详细信息可应用于此标记的所有权限相关标识。

.NET Framework 安全性

请参阅

参考

SecurityWebService 类

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