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 团队资源管理器窗口的当前上下文。
公共属性 IsConnecting 是我们在身份验证的处理。在后台线程的默认值服务器。

页首

方法

  名称 说明
公共方法 CancelConnecting 如果建立了以异步方式,取消连接到服务器。
公共方法 ClearDefaultConnection
公共方法 Connect()
公共方法 Connect(TeamProjectPickerMode, Boolean)
公共方法 Dispose
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 SaveItems
公共方法 SetContext(TfsTeamProjectCollection, String) 创建一个并设置团队资源管理器窗口的新 ITeamFoundationContext。
公共方法 SetContext(TfsTeamProjectCollection, String, Guid) 创建一个并设置团队资源管理器窗口的新 ITeamFoundationContext。
公共方法 SetContext(String, String, Guid, Boolean, ActiveContextChangeReason, Boolean) 创建一个并设置团队资源管理器窗口的新 ITeamFoundationContext。
公共方法 SetContext(TfsTeamProjectCollection, String, Guid, Boolean, ActiveContextChangeReason, Boolean) 创建一个并设置团队资源管理器窗口的新 ITeamFoundationContext。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

事件

  名称 说明
公共事件 ConnectionCompleted
公共事件 ConnectionStarting
公共事件 ContextChanged
公共事件 ContextChanging

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Services.Integration 命名空间