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) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。