共用方式為


ContextManager 類別

繼承階層架構

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

命名空間:  Microsoft.VisualStudio.Services.Integration
組件:  Microsoft.VisualStudio.Services.Integration (在 Microsoft.VisualStudio.Services.Integration.dll 中)

語法

'宣告
Public NotInheritable Class ContextManager _
    Implements IDisposable, ITeamFoundationContextManager2, ITeamFoundationContextManager, ITeamFoundationConnectionManager
public sealed class ContextManager : IDisposable, 
    ITeamFoundationContextManager2, ITeamFoundationContextManager, ITeamFoundationConnectionManager

ContextManager 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 ContextManager

回頁首

屬性

  名稱 描述
公用屬性 CurrentContext Team 總管視窗中的目前內容。
公用屬性 IsConnecting 是我們在驗證的流程到在背景執行緒的預設伺服器。

回頁首

方法

  名稱 描述
公用方法 CancelConnecting 如果已經建立連接,以非同步方式取消連接到伺服器。
公用方法 ClearDefaultConnection
公用方法 Connect()
公用方法 Connect(TeamProjectPickerMode, Boolean)
公用方法 Dispose
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 SaveItems
公用方法 SetContext(TfsTeamProjectCollection, String) 建立和設定 Team 總管視窗的新 ITeamFoundationContext。
公用方法 SetContext(TfsTeamProjectCollection, String, Guid) 建立和設定 Team 總管視窗的新 ITeamFoundationContext。
公用方法 SetContext(String, String, Guid, Boolean, ActiveContextChangeReason, Boolean) 建立和設定 Team 總管視窗的新 ITeamFoundationContext。
公用方法 SetContext(TfsTeamProjectCollection, String, Guid, Boolean, ActiveContextChangeReason, Boolean) 建立和設定 Team 總管視窗的新 ITeamFoundationContext。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

事件

  名稱 描述
公用事件 ConnectionCompleted
公用事件 ConnectionStarting
公用事件 ContextChanged
公用事件 ContextChanging

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Services.Integration 命名空間