Delen via


TeamFoundationTeamService.QueryTeams Method (TeamFoundationRequestContext, IdentityDescriptor)

Queries all Team groups that given user is a member of.

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

Syntax

'Declaration
Public Function QueryTeams ( _
    requestContext As TeamFoundationRequestContext, _
    descriptor As IdentityDescriptor _
) As IEnumerable(Of TeamFoundationTeam)
public IEnumerable<TeamFoundationTeam> QueryTeams(
    TeamFoundationRequestContext requestContext,
    IdentityDescriptor descriptor
)
public:
virtual IEnumerable<TeamFoundationTeam^>^ QueryTeams(
    TeamFoundationRequestContext^ requestContext, 
    IdentityDescriptor^ descriptor
) sealed
abstract QueryTeams : 
        requestContext:TeamFoundationRequestContext * 
        descriptor:IdentityDescriptor -> IEnumerable<TeamFoundationTeam> 
override QueryTeams : 
        requestContext:TeamFoundationRequestContext * 
        descriptor:IdentityDescriptor -> IEnumerable<TeamFoundationTeam> 
public final function QueryTeams(
    requestContext : TeamFoundationRequestContext, 
    descriptor : IdentityDescriptor
) : IEnumerable<TeamFoundationTeam>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<TeamFoundationTeam>
Returns IEnumerable<T>.

Implements

ITeamFoundationTeamService.QueryTeams(TeamFoundationRequestContext, IdentityDescriptor)

.NET Framework Security

See Also

Reference

TeamFoundationTeamService Class

QueryTeams Overload

Microsoft.TeamFoundation.Server.Core Namespace