This documentation is archived and is not being maintained.

ITeamFoundationContextManager::SetContext Method (TfsTeamProjectCollection, String)

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
)

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.

Show: