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) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。