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 _
)
void SetContext(
    TfsTeamProjectCollection teamProjectCollection,
    string projectUri
)
void SetContext(
    TfsTeamProjectCollection^ teamProjectCollection, 
    String^ projectUri
)
abstract SetContext : 
        teamProjectCollection:TfsTeamProjectCollection * 
        projectUri:string -> unit
function SetContext(
    teamProjectCollection : TfsTeamProjectCollection, 
    projectUri : String
)
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. 
.NET Framework Security
- 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.