Поделиться через


ITeamFoundationContextManager2 Interface

Get this service to monitor changes to the current context associated with the Team Explorer window. This implementation also allows full Setting of the context with all parameters.

This API is not CLS-compliant. 

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
<GuidAttribute("9CCFE978-9849-4338-AB18-194EA5A646C5")> _
Public Interface ITeamFoundationContextManager2 _
    Inherits ITeamFoundationContextManager
[CLSCompliantAttribute(false)]
[GuidAttribute("9CCFE978-9849-4338-AB18-194EA5A646C5")]
public interface ITeamFoundationContextManager2 : ITeamFoundationContextManager
[CLSCompliantAttribute(false)]
[GuidAttribute(L"9CCFE978-9849-4338-AB18-194EA5A646C5")]
public interface class ITeamFoundationContextManager2 : ITeamFoundationContextManager
[<CLSCompliantAttribute(false)>]
[<GuidAttribute("9CCFE978-9849-4338-AB18-194EA5A646C5")>]
type ITeamFoundationContextManager2 =  
    interface 
        interface ITeamFoundationContextManager 
    end
public interface ITeamFoundationContextManager2 extends ITeamFoundationContextManager

The ITeamFoundationContextManager2 type exposes the following members.

Properties

  Name Description
Public property CurrentContext The current context for the Team Explorer window. (Inherited from ITeamFoundationContextManager.)

Top

Methods

  Name Description
Public method SetContext(TfsTeamProjectCollection, String) Creates and sets the new ITeamFoundationContext for the Team Explorer window. (Inherited from ITeamFoundationContextManager.)
Public method SetContext(TfsTeamProjectCollection, String, Guid) Creates and sets the new ITeamFoundationContext for the Team Explorer window. (Inherited from ITeamFoundationContextManager.)
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.

Top

Events

  Name Description
Public event ContextChanged An event that occurs whenever the context has changed. (Inherited from ITeamFoundationContextManager.)
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. (Inherited from ITeamFoundationContextManager.)

Top

See Also

Reference

Microsoft.TeamFoundation.Client Namespace