This documentation is archived and is not being maintained.

ContextManager Class

Visual Studio 2013

System::Object
  Microsoft.VisualStudio.Services.Integration::ContextManager

Namespace:  Microsoft.VisualStudio.Services.Integration
Assembly:  Microsoft.VisualStudio.Services.Integration (in Microsoft.VisualStudio.Services.Integration.dll)

public ref class ContextManager sealed : IDisposable, 
	ITeamFoundationContextManager2, ITeamFoundationContextManager, ITeamFoundationConnectionManager

The ContextManager type exposes the following members.

  NameDescription
Public propertyCurrentContextThe current context for the Team Explorer window.
Public propertyIsConnectingAre we in the process on authentication to the default server on the background thread.
Top

  NameDescription
Public methodCancelConnectingCancels connecting to a server if the connection is being made asynchronously.
Public methodClearDefaultConnection
Public methodConnect()
Public methodConnect(TeamProjectPickerMode, Boolean)
Public methodDispose
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSaveItems
Public methodSetContext(TfsTeamProjectCollection, String)Creates and sets the new ITeamFoundationContext for the Team Explorer window.
Public methodSetContext(TfsTeamProjectCollection, String, Guid)Creates and sets the new ITeamFoundationContext for the Team Explorer window.
Public methodSetContext(String, String, Guid, Boolean, ActiveContextChangeReason, Boolean)Creates and sets the new ITeamFoundationContext for the Team Explorer window.
Public methodSetContext(TfsTeamProjectCollection, String, Guid, Boolean, ActiveContextChangeReason, Boolean)Creates and sets the new ITeamFoundationContext for the Team Explorer window.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: