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)

[CLSCompliantAttribute(false)]
[GuidAttribute("C4EDF2C2-A987-4AFC-AC67-8E8ADE6D2E13")]
public interface ITeamFoundationContextManager

The ITeamFoundationContextManager type exposes the following members.

  NameDescription
Public propertyCurrentContextThe current context for the Team Explorer window.
Top

  NameDescription
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.
Top

  NameDescription
Public eventContextChangedAn event that occurs whenever the context has changed.
Public eventContextChangingAn 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
Show: