Delen via


TeamFoundationSecurityNamespace.QueryAccessControlLists Method

In all cases: This method will query the AccessControlList for the token specified. It will return AccessControlEntry information for the descriptors that are supplied or all descriptors if null is supplied for the descriptors parameter.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function QueryAccessControlLists ( _
    requestContext As TeamFoundationRequestContext, _
    token As String, _
    descriptors As IEnumerable(Of IdentityDescriptor), _
    includeExtendedInfo As Boolean, _
    recurse As Boolean _
) As IEnumerable(Of AccessControlList)
public IEnumerable<AccessControlList> QueryAccessControlLists(
    TeamFoundationRequestContext requestContext,
    string token,
    IEnumerable<IdentityDescriptor> descriptors,
    bool includeExtendedInfo,
    bool recurse
)
public:
IEnumerable<AccessControlList^>^ QueryAccessControlLists(
    TeamFoundationRequestContext^ requestContext, 
    String^ token, 
    IEnumerable<IdentityDescriptor^>^ descriptors, 
    bool includeExtendedInfo, 
    bool recurse
)
member QueryAccessControlLists : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        descriptors:IEnumerable<IdentityDescriptor> * 
        includeExtendedInfo:bool * 
        recurse:bool -> IEnumerable<AccessControlList> 
public function QueryAccessControlLists(
    requestContext : TeamFoundationRequestContext, 
    token : String, 
    descriptors : IEnumerable<IdentityDescriptor>, 
    includeExtendedInfo : boolean, 
    recurse : boolean
) : IEnumerable<AccessControlList>

Parameters

  • token
    Type: System.String

    The token for the AccessControlList to query permissions for.

  • includeExtendedInfo
    Type: System.Boolean

    If includeExtendedInfo is false: All of the ExtendedInfo properties for the returned AccessControlEntry objects will be null. If includeExtendedInfo is true: All of the ExtendedInfo properties for the returned AccessControlEntry objects will contain references to valid AceExtendedInformation objects. If the descriptors parameter is null, this function will return AccessControlEntries for all descriptors that have explicit or inherited permissions on them.

  • recurse
    Type: System.Boolean

    If recurse is true and this is a hierarchical namespace: Information about the tokens that exist below the specified token passed in the SecurityNamespace will be returned as well.

Return Value

Type: System.Collections.Generic.IEnumerable<AccessControlList>
AccessControlLists for the information passed in.

.NET Framework Security

See Also

Reference

TeamFoundationSecurityNamespace Class

Microsoft.TeamFoundation.Framework.Server Namespace