This documentation is archived and is not being maintained.

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)

void SetContext(
	TfsTeamProjectCollection^ teamProjectCollection, 
	String^ projectUri, 
	Guid teamId
)

Parameters

teamProjectCollection
Type: Microsoft.TeamFoundation.Client::TfsTeamProjectCollection

The team project collection, can be null.

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.

Show: