This documentation is archived and is not being maintained.
ITeamFoundationContextManager::SetContext Method (TfsTeamProjectCollection, String, Guid)
Visual Studio 2013
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: