Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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, _
project As String, _
teamId As Guid, _
connectAsynchronously As Boolean, _
reason As ActiveContextChangeReason, _
promptOnError As Boolean _
)
public void SetContext(
TfsTeamProjectCollection teamProjectCollection,
string project,
Guid teamId,
bool connectAsynchronously,
ActiveContextChangeReason reason,
bool promptOnError
)
public:
virtual void SetContext(
TfsTeamProjectCollection^ teamProjectCollection,
String^ project,
Guid teamId,
bool connectAsynchronously,
ActiveContextChangeReason reason,
bool promptOnError
) sealed
abstract SetContext :
teamProjectCollection:TfsTeamProjectCollection *
project:string *
teamId:Guid *
connectAsynchronously:bool *
reason:ActiveContextChangeReason *
promptOnError:bool -> unit
override SetContext :
teamProjectCollection:TfsTeamProjectCollection *
project:string *
teamId:Guid *
connectAsynchronously:bool *
reason:ActiveContextChangeReason *
promptOnError:bool -> unit
public final function SetContext(
teamProjectCollection : TfsTeamProjectCollection,
project : String,
teamId : Guid,
connectAsynchronously : boolean,
reason : ActiveContextChangeReason,
promptOnError : boolean
)
Parameters
teamProjectCollection
Type: Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionThe team project collection, can be null.
project
Type: System.StringThe team project name or fully qualified URI, can be null.
teamId
Type: System.GuidThe ID of the team, can be Guid.Empty.
- connectAsynchronously
Type: System.Boolean
- promptOnError
Type: System.Boolean
Implements
.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.