StandardModelingAdapter 类

表示基本的基于 DSL 模型的适配器。

此 API 不兼容 CLS。 

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter
    Microsoft.VisualStudio.Modeling.Integration.ModelingAdapter
      Microsoft.VisualStudio.Modeling.Integration.StandardModelingAdapter

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

语法

声明
<CLSCompliantAttribute(False)> _
Public MustInherit Class StandardModelingAdapter _
    Inherits ModelingAdapter
[CLSCompliantAttribute(false)]
public abstract class StandardModelingAdapter : ModelingAdapter

StandardModelingAdapter 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 StandardModelingAdapter(ModelBusReference, ModelBusAdapterManager, ModelElement) 构造函数
受保护的方法 StandardModelingAdapter(ModelBusReference, ModelBusAdapterManager, Store) 构造函数

页首

属性

  名称 说明
公共属性 AdapterManager ModelBusAdapterManager 实例创建此 ModelBusAdapter 实例。 (继承自 ModelBusAdapter。)
受保护的属性 AdapterModelRoot
受保护的属性 AdapterStore
公共属性 DisplayName ModelBusAdapter 的显示名称。 (继承自 ModelBusAdapter。)
公共属性 Disposed 如果此 ModelBusAdapter 实例已处理,则为 true;否则为 false。 (继承自 ModelBusAdapter。)
公共属性 DocumentHandler 供 ModelingAdapter 使用的 ModelingDocumentHandler。ModelBusAdapter 所用的 DocumentHandler 可配置其所包装的模型。如果此属性尚未设置好,您可以对其进行设置。 (继承自 ModelingAdapter。)
公共属性 Reference (继承自 ModelBusAdapter。)

页首

方法

  名称 说明
公共方法 Dispose() (继承自 ModelBusAdapter。)
受保护的方法 Dispose(Boolean) 清理此 ModelBusAdapter 实例。如果有,则触发 DocumentHandler 的释放。 (继承自 ModelingAdapter。)
公共方法 Equals(Object) 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法 Equals(ModelBusAdapter) 如果此 ModelBusAdapte r与给定的 ModelBusAdapter 实例相同,则为 true;否则为 false。 (继承自 ModelBusAdapter。)
受保护的方法 Finalize 析构函数。 (继承自 ModelBusAdapter。)
公共方法 GetDefaultView 如果可用,则获得与此模型相关联的 PrimaryView。 (重写 ModelBusAdapter.GetDefaultView()。)
受保护的方法 GetElementDisplayName 允许 DSL 作者决定一特定模型元素的显示名称的扩展点。
受保护的方法 GetElementId 获取指向 ModelElement 的 Element ID 链接。该元素 Id 将用于生成模型元素的 modelbus 引用
公共方法 GetElementReference 获取给定对象实例的引用,该实例假定由此适配器公开。 (重写 ModelBusAdapter.GetElementReference(Object)。)
受保护的方法 GetElementReferences 恢复所有符合给定数据协定的引用对象。 (继承自 ModelBusAdapter。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetReferences (继承自 ModelBusAdapter。)
受保护的方法 GetReferenceStatus 验证元素和视图(如果适用)并回状态 (重写 ModelBusAdapter.GetReferenceStatus()。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetView 根据 ModelBusView 引用获取域此“模型”关联的指定视图 (重写 ModelBusAdapter.GetView(ModelBusReference)。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ResolveElementReference 如果为元素的标识符,则返回此引用表示的实际对象。 (重写 ModelBusAdapter.ResolveElementReference(ModelBusReference)。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 TrySetDocumentHandler 如果 ModelingDocumentHandler 尚未设置 (即的由构造函数),则将其设置为传递的值作为参数。否则,返回 false。 (继承自 ModelingAdapter。)

页首

线程安全

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

请参阅

参考

Microsoft.VisualStudio.Modeling.Integration 命名空间