ContextManager.SetContext Method (TfsTeamProjectCollection, String)
Creates and sets the new ITeamFoundationContext for the Team Explorer window.
Namespace: Microsoft.VisualStudio.Services.Integration
Assembly: Microsoft.VisualStudio.Services.Integration (in Microsoft.VisualStudio.Services.Integration.dll)
Syntax
'Declaration
Public Sub SetContext ( _
teamProjectCollection As TfsTeamProjectCollection, _
projectUri As String _
)
public void SetContext(
TfsTeamProjectCollection teamProjectCollection,
string projectUri
)
public:
virtual void SetContext(
TfsTeamProjectCollection^ teamProjectCollection,
String^ projectUri
) sealed
abstract SetContext :
teamProjectCollection:TfsTeamProjectCollection *
projectUri:string -> unit
override SetContext :
teamProjectCollection:TfsTeamProjectCollection *
projectUri:string -> unit
public final function SetContext(
teamProjectCollection : TfsTeamProjectCollection,
projectUri : String
)
Parameters
teamProjectCollection
Type: Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionThe team project collection, can be null.
projectUri
Type: System.StringThe team project fully qualified URI, can be null.
Implements
ITeamFoundationContextManager.SetContext(TfsTeamProjectCollection, String)
.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.