Share via


ITeamFoundationContextManager Interface

Get this service to monitor changes to the current context associated with the Team Explorer window.

This API is not CLS-compliant. 

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Interface ITeamFoundationContextManager
[CLSCompliantAttribute(false)]
public interface ITeamFoundationContextManager
[CLSCompliantAttribute(false)]
public interface class ITeamFoundationContextManager
[<CLSCompliantAttribute(false)>]
type ITeamFoundationContextManager =  interface end
public interface ITeamFoundationContextManager

The ITeamFoundationContextManager type exposes the following members.

Properties

  Name Description
Public property CurrentContext The current context for the Team Explorer window.

Top

Methods

  Name Description
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.

Top

Events

  Name Description
Public event ContextChanged An event that occurs whenever the context has changed.
Public event ContextChanging An event that occurs whenever the server context is changing, provides listeners the ability to cancel the change or add IVsHierarchy items that have to be prompted for save before switching the active server.

Top

See Also

Reference

Microsoft.TeamFoundation.Client Namespace