Delen via


ITeamFoundationTeamService.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
Function QueryTeams ( _
    requestContext As TeamFoundationRequestContext, _
    descriptor As IdentityDescriptor _
) As IEnumerable(Of TeamFoundationTeam)
IEnumerable<TeamFoundationTeam> QueryTeams(
    TeamFoundationRequestContext requestContext,
    IdentityDescriptor descriptor
)
IEnumerable<TeamFoundationTeam^>^ QueryTeams(
    TeamFoundationRequestContext^ requestContext, 
    IdentityDescriptor^ descriptor
)
abstract QueryTeams : 
        requestContext:TeamFoundationRequestContext * 
        descriptor:IdentityDescriptor -> IEnumerable<TeamFoundationTeam> 
function QueryTeams(
    requestContext : TeamFoundationRequestContext, 
    descriptor : IdentityDescriptor
) : IEnumerable<TeamFoundationTeam>

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

ITeamFoundationTeamService Interface

QueryTeams Overload

Microsoft.TeamFoundation.Server.Core Namespace