ModelBusView 类

ModelBusView 是模型从 ModelBusAdapter 获得的对象。 “ModelBusView” 允许客户端生成,访问和操作用于模型的设计表面和编辑器。

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.Integration.ModelBusView
    Microsoft.VisualStudio.Modeling.Integration.Shell.VsModelingView

命名空间:  Microsoft.VisualStudio.Modeling.Integration
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll 中)

语法

声明
Public MustInherit Class ModelBusView
public abstract class ModelBusView

ModelBusView 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 ModelBusView 构造函数

页首

属性

  名称 说明
公共属性 Adapter ModelBusAdapter 实例创建并拥有此 ModelBusView
公共属性 IsOperational 派生类的标志用来指示 ModelBusView 是否可用
公共属性 ViewReference 引用标识符,用于生成该 ModelBusView 对象

页首

方法

  名称 说明
公共方法 Close 关闭此 ModelBusView 表示的 WindowFrame。
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 Hide 隐藏此 ModelBusView 表示的 WindowFrame。基础视图容器仍然保留在内存中。
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 Open 打开/粘附由此 ModelBusView 表示的基础的新编辑器对象。
公共方法 SetSelection(ModelBusReference) 在此 ModelBusView 中选择由引用标识的元素。
公共方法 SetSelection(IEnumerable<ModelBusReference>) 在此 ModelBusView 中选择由引用标识的元素。
公共方法 Show 激活此 ModelBusView 表示的 WindowFrame 并对其设置焦点
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

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

请参阅

参考

Microsoft.VisualStudio.Modeling.Integration 命名空间