共用方式為


SecurityWebService.QueryPermissions 方法

在所有情況下:這個方法會查詢這個語彙基元的使用權限指定的 (與在它,如果遞迴和指定此下是階層式命名空間)。 它會傳回有關提供或所有識別的識別使用權限資訊,如果為 null 則為識別參數提供。 IAccessControlLists 物件為語彙基元只會傳回我們有資訊。 請注意存取控制項目在存取控制清單中傳回的順序不具決定性。 如果 includeExtendedInfo 為 false:所有傳回的物件 AccessControlEntry ExtendedInfo 的屬性將會是空的。 如果 includeExtendedInfo 成立:所有傳回的物件 AccessControlEntry ExtendedInfo 的屬性將包含有效 ExtendedPermissionInformation 物件的參考。 如果識別參數是空的,這個函式會傳回有明確或繼承之使用權限的所有識別的使用權限資訊。

命名空間:  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
    查詢使用權限的語彙基元。如果此值為 null,語彙基元的所有使用權限將會傳回。
  • includeExtendedInfo
    類型:System.Boolean
    將是否已附加至所有的 ExtendedPermissionInformation 物件存取繼承的和有效的使用權限資訊的 IPermission 物件是 True。如果這是錯誤的,所有在 AccessControlEntry ExtendedInfo 物件的屬性將會是空的。
  • recurse
    類型:System.Boolean
    如果是與這個 funciton 在階層式命名空間執行,它會將傳回此資源的所有 ACL 和章節。

傳回值

類型:System.Collections.Generic.List<AccessControlListDetails>
所有的詳細資料可以套用到這個語彙基元的所有使用權限相關的識別。

.NET Framework 安全性

請參閱

參考

SecurityWebService 類別

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