Compartir a través de


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)> _
<GuidAttribute("C4EDF2C2-A987-4AFC-AC67-8E8ADE6D2E13")> _
Public Interface ITeamFoundationContextManager
[CLSCompliantAttribute(false)]
[GuidAttribute("C4EDF2C2-A987-4AFC-AC67-8E8ADE6D2E13")]
public interface ITeamFoundationContextManager
[CLSCompliantAttribute(false)]
[GuidAttribute(L"C4EDF2C2-A987-4AFC-AC67-8E8ADE6D2E13")]
public interface class ITeamFoundationContextManager
[<CLSCompliantAttribute(false)>]
[<GuidAttribute("C4EDF2C2-A987-4AFC-AC67-8E8ADE6D2E13")>]
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