Partager via


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

  • token
    Type: System.String

    The token the query is being made on.

  • includeExtendedInfo
    Type: System.Boolean

    True if the caller has requested that extended information be included in the ACEs returned.

Return Value

Type: System.Collections.Generic.IEnumerable<AccessControlList>
The set of ACLs that should be returned to the caller.

.NET Framework Security

See Also

Reference

ISecurityNamespaceExtension Interface

Microsoft.TeamFoundation.Framework.Server Namespace