ISecurityNamespaceExtension.QueryPermissions Method
Called each time the security namespace is about to return AccessControlLists to either the server API or to the web service. This allows the implementor to modify any of the ACLs that are being returned.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Function QueryPermissions ( _
requestContext As TeamFoundationRequestContext, _
token As String, _
descriptors As IEnumerable(Of IdentityDescriptor), _
includeExtendedInfo As Boolean, _
recurse As Boolean, _
preliminaryAccessControlLists As IEnumerable(Of AccessControlList) _
) As IEnumerable(Of AccessControlList)
IEnumerable<AccessControlList> QueryPermissions(
TeamFoundationRequestContext requestContext,
string token,
IEnumerable<IdentityDescriptor> descriptors,
bool includeExtendedInfo,
bool recurse,
IEnumerable<AccessControlList> preliminaryAccessControlLists
)
IEnumerable<AccessControlList^>^ QueryPermissions(
TeamFoundationRequestContext^ requestContext,
String^ token,
IEnumerable<IdentityDescriptor^>^ descriptors,
bool includeExtendedInfo,
bool recurse,
IEnumerable<AccessControlList^>^ preliminaryAccessControlLists
)
abstract QueryPermissions :
requestContext:TeamFoundationRequestContext *
token:string *
descriptors:IEnumerable<IdentityDescriptor> *
includeExtendedInfo:bool *
recurse:bool *
preliminaryAccessControlLists:IEnumerable<AccessControlList> -> IEnumerable<AccessControlList>
function QueryPermissions(
requestContext : TeamFoundationRequestContext,
token : String,
descriptors : IEnumerable<IdentityDescriptor>,
includeExtendedInfo : boolean,
recurse : boolean,
preliminaryAccessControlLists : IEnumerable<AccessControlList>
) : IEnumerable<AccessControlList>
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context for the current request which contains the user trying to perform the action.
token
Type: System.StringThe token the query is being made on.
descriptors
Type: System.Collections.Generic.IEnumerable<IdentityDescriptor>The descriptors requested by the caller.
includeExtendedInfo
Type: System.BooleanTrue if the caller has requested that extended information be included in the ACEs returned.
recurse
Type: System.BooleanTrue if this query should recurse.
preliminaryAccessControlLists
Type: System.Collections.Generic.IEnumerable<AccessControlList>The preliminary set of ACLs that was going to be returned.
Return Value
Type: System.Collections.Generic.IEnumerable<AccessControlList>
The set of ACLs that should be returned to the caller.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.