Share via


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

  • projectUri
    Type: System.String

    The team project fully qualified URI, can be null.

Implements

ITeamFoundationContextManager.SetContext(TfsTeamProjectCollection, String)

.NET Framework Security

See Also

Reference

ContextManager Class

SetContext Overload

Microsoft.VisualStudio.Services.Integration Namespace