SecurityWebService.QueryPermissions 方法
在所有情況下:這個方法會查詢語彙基元的使用權限指定的 (和) 時,如果指定遞迴和下這樣做是階層式命名空間)。 它會傳回有關提供或所有識別的識別使用權限資訊,如果為 null 識別參數提供。 IAccessControlLists 物件要用於語彙基元只傳回我們的相關資訊。 請注意存取控制項目的傳回順序,在存取控制清單 (ACL),不具決定性。
如果 includeExtendedInfo 為 false:所有傳回的 AccessControlEntry 物件的 ExtendedInfo 屬性將會是空的。
如果 includeExtendedInfo 成立:所有傳回的 AccessControlEntry 物件的 ExtendedInfo 屬性會包含有效的 ExtendedPermissionInformation 物件的參考。 如果識別參數為 null,則此函式會傳回有明確或繼承權限的識別使用權限的資訊。
命名空間: Microsoft.TeamFoundation.Framework.Server.WebServices
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.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,語彙基元的所有使用權限將會傳回。
- identities
型別:System.Collections.Generic.List<IdentityDescriptor>
- includeExtendedInfo
型別:System.Boolean
包括是否已附加至所有的 ExtendedPermissionInformation 物件繼承的和有效的使用權限資訊 IPermission 物件一樣。如果為 false,則所有在 AccessControlEntry 物件的 ExtendedInfo 屬性將會是空的。
- recurse
型別:System.Boolean
如果為 true 和這個函式在階層式命名空間中執行,則會傳回資源的所有 ACL 和這個在其下。
傳回值
型別:System.Collections.Generic.List<AccessControlListDetails>
所有的詳細資料可以套用至這個語彙基元的所有使用權限相關的識別。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。