Delen via


ContextManager Class

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public NotInheritable Class ContextManager _
    Implements IDisposable, ITeamFoundationContextManager2, ITeamFoundationContextManager, ITeamFoundationConnectionManager
public sealed class ContextManager : IDisposable, 
    ITeamFoundationContextManager2, ITeamFoundationContextManager, ITeamFoundationConnectionManager
public ref class ContextManager sealed : IDisposable, 
    ITeamFoundationContextManager2, ITeamFoundationContextManager, ITeamFoundationConnectionManager
[<Sealed>]
type ContextManager =  
    class 
        interface IDisposable 
        interface ITeamFoundationContextManager2 
        interface ITeamFoundationContextManager 
        interface ITeamFoundationConnectionManager 
    end
public final class ContextManager implements IDisposable, ITeamFoundationContextManager2, ITeamFoundationContextManager, ITeamFoundationConnectionManager

The ContextManager type exposes the following members.

Constructors

  Name Description
Public method ContextManager

Top

Properties

  Name Description
Public property CurrentContext The current context for the Team Explorer window.
Public property IsConnecting Are we in the process on authentication to the default server on the background thread.

Top

Methods

  Name Description
Public method CancelConnecting Cancels connecting to a server if the connection is being made asynchronously.
Public method ClearDefaultConnection
Public method Connect()
Public method Connect(TeamProjectPickerMode, Boolean)
Public method Dispose
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method SaveItems
Public method SetContext(TfsTeamProjectCollection, String) Creates and sets the new ITeamFoundationContext for the Team Explorer window.
Public method SetContext(TfsTeamProjectCollection, String, Guid) Creates and sets the new ITeamFoundationContext for the Team Explorer window.
Public method SetContext(String, String, Guid, Boolean, ActiveContextChangeReason, Boolean) Creates and sets the new ITeamFoundationContext for the Team Explorer window.
Public method SetContext(TfsTeamProjectCollection, String, Guid, Boolean, ActiveContextChangeReason, Boolean) Creates and sets the new ITeamFoundationContext for the Team Explorer window.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event ConnectionCompleted
Public event ConnectionStarting
Public event ContextChanged
Public event ContextChanging

Top

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.Services.Integration Namespace