Delen via


ITeamFoundationContextManager.SetContext Method (TfsTeamProjectCollection, String, Guid)

Creates and sets the new ITeamFoundationContext for the Team Explorer window.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Sub SetContext ( _
    teamProjectCollection As TfsTeamProjectCollection, _
    projectUri As String, _
    teamId As Guid _
)
void SetContext(
    TfsTeamProjectCollection teamProjectCollection,
    string projectUri,
    Guid teamId
)
void SetContext(
    TfsTeamProjectCollection^ teamProjectCollection, 
    String^ projectUri, 
    Guid teamId
)
abstract SetContext : 
        teamProjectCollection:TfsTeamProjectCollection * 
        projectUri:string * 
        teamId:Guid -> unit
function SetContext(
    teamProjectCollection : TfsTeamProjectCollection, 
    projectUri : String, 
    teamId : Guid
)

Parameters

  • projectUri
    Type: System.String

    The team project fully qualified Uri, can be null.

  • teamId
    Type: System.Guid

    The id of the TeamFoundationTeam object to set as the current team, can be Guid.Empty.

.NET Framework Security

See Also

Reference

ITeamFoundationContextManager Interface

SetContext Overload

Microsoft.TeamFoundation.Client Namespace