CoreDesignSurfaceDomainModel 类

重写反射替换 apis

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.DomainModel
    Microsoft.VisualStudio.Modeling.Diagrams.CoreDesignSurfaceDomainModel

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

语法

声明
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.CoreDesignSurfaceDomainModel.DisplayName",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.CoreDesignSurfaceDomainModel.Description",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<CLSCompliantAttribute(True)> _
<DependsOnDomainModelAttribute(GetType(CoreDomainModel))> _
<DomainObjectIdAttribute("91d59b16-e488-4a28-8d51-59273ad5bf2e")> _
Public Class CoreDesignSurfaceDomainModel _
    Inherits DomainModel
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.CoreDesignSurfaceDomainModel.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.CoreDesignSurfaceDomainModel.Description", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[CLSCompliantAttribute(true)]
[DependsOnDomainModelAttribute(typeof(CoreDomainModel))]
[DomainObjectIdAttribute("91d59b16-e488-4a28-8d51-59273ad5bf2e")]
public class CoreDesignSurfaceDomainModel : DomainModel

CoreDesignSurfaceDomainModel 类型公开以下成员。

构造函数

  名称 说明
公共方法 CoreDesignSurfaceDomainModel 构造函数。

页首

属性

  名称 说明
公共属性 DomainModelInfo 获取有关域模型的信息。 (继承自 DomainModel。)
公共属性 ResourceManager 获取 DomainModel 的 ResourceManager。如果 ResourceManager 尚不存在,则创建该它。 (重写 DomainModel.ResourceManager。)
公共属性静态成员 SingletonResourceManager 获取该域模型的 Singleton ResourceManager。
公共属性 Store 获取包含域模型的一个实例存储区。 (继承自 DomainModel。)

页首

方法

  名称 说明
公共方法 CreateElement 创建指定类型的元素。 (重写 DomainModel.CreateElement(Partition, Type, array<PropertyAssignment[])。)
公共方法 CreateElementLink 创建指定类型的元素链接。 (重写 DomainModel.CreateElementLink(Partition, Type, array<RoleAssignment[], array<PropertyAssignment[])。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetClosureFilter 返回对应于 ClosureType 的 IElementVisitorFilter。 (重写 DomainModel.GetClosureFilter(ClosureType, ICollection<ModelElement>)。)
公共方法 GetClosureVisitor 返回对应于特定关闭类型的 IElementVisitor。 (继承自 DomainModel。)
受保护的方法 GetCustomDomainModelTypes 在 DomainModel 中返回所有 DomainModel 对象类型的集合的虚方法 (重写 DomainModel.GetCustomDomainModelTypes()。)
受保护的方法 GetCustomDomainProperties 获取未生成的域属性。 (继承自 DomainModel。)
受保护的方法 GetCustomDomainRoles 获取未生成的域角色。 (继承自 DomainModel。)
受保护的方法 GetGeneratedDomainModelTypes 获取生成的域模型类型 (类、规则,关系) 列表。 (重写 DomainModel.GetGeneratedDomainModelTypes()。)
受保护的方法 GetGeneratedDomainProperties 获取生成的域属性列表。 (重写 DomainModel.GetGeneratedDomainProperties()。)
受保护的方法 GetGeneratedDomainRoles 获取生成的域角色列表。 (重写 DomainModel.GetGeneratedDomainRoles()。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

字段

  名称 说明
公共字段静态成员 DomainModelId CoreDesignSurfaceDomainModel 域模型 ID。
公共字段静态成员 ResourceBaseName 模型资源的基名称。

页首

线程安全

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

请参阅

参考

Microsoft.VisualStudio.Modeling.Diagrams 命名空间