为特定数据库架构提供程序支持的架构模型元素提供基类。
继承层次结构
System.Object
  Microsoft.Data.Schema.SchemaModel.ModelElement
    Microsoft.Data.Schema.SchemaModel.DataSchemaModel.ScriptSourcedModelElement
命名空间:  Microsoft.Data.Schema.SchemaModel
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public MustInherit Class ModelElement _
    Implements IModelElement, IModelPropertyContainer, IModelEntity, IModelAnnotationHolder
public abstract class ModelElement : IModelElement, 
    IModelPropertyContainer, IModelEntity, IModelAnnotationHolder
public ref class ModelElement abstract : IModelElement, 
    IModelPropertyContainer, IModelEntity, IModelAnnotationHolder
[<AbstractClass>]
type ModelElement =  
    class
        interface IModelElement
        interface IModelPropertyContainer
        interface IModelEntity
        interface IModelAnnotationHolder
    end
public abstract class ModelElement implements IModelElement, IModelPropertyContainer, IModelEntity, IModelAnnotationHolder
ModelElement 类型公开以下成员。
构造函数
页首
属性
页首
方法
| .gif) | AddAnnotation | 将所提供的 IModelAnnotation 对象添加到元素。 | 
| .gif) | Delete | 从架构模型中删除当前元素。 | 
| .gif) | Equals | 确定所提供的对象是否等于当前元素。 (重写 Object.Equals(Object)。) | 
| .gif) | Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) | 
| .gif) | GetAnnotations() | 获取已添加到此元素的批注的列表。 | 
| .gif) | GetAnnotations(Type) | 获取已添加到此元素的指定类型批注的列表。 | 
| .gif) | GetAnnotations(ModelIdentifier) | 获取已添加到指定元素(当前元素的子元素)的批注的列表。 | 
| .gif) | GetAnnotations(ModelIdentifier, Type) | 获取一个列表,其中包含已添加到当前元素指定子元素中的指定类型的批注。 | 
| .gif) | GetAnnotations<TType>() | 获取附加到当前元素的所提供类型的批注的列表。 | 
| .gif) | GetAnnotations<TType>(ModelIdentifier) | 获取附加到指定元素且其类型与所提供的 Type 匹配的批注的列表。 | 
| .gif) | GetComposingChildren | 返回构成子元素的列表。 | 
| .gif) | GetHashCode | 用作特定类型的哈希函数。 (重写 Object.GetHashCode()。) | 
| .gif) | GetHierarchicalChildren | 获取层次结构子元素的列表。 | 
| .gif) | GetMultiRelationship<TFrom, TTo> |  | 
| .gif) | GetOwnerInfo | 返回有关当前元素的所有者的信息。 | 
| .gif) | GetProperty<TProperty> |  | 
| .gif) | GetReferencedDanglingRelationshipEntries |  | 
| .gif) | GetReferencedElements |  | 
| .gif) | GetReferencedRelationshipEntries |  | 
| .gif) | GetReferencingElements |  | 
| .gif) | GetReferencingRelationshipEntries |  | 
| .gif) | GetRelationship(ModelRelationshipClass) |  | 
| .gif) | GetRelationship<TFrom, TTo>(ModelRelationshipClass) |  | 
| .gif) | GetRelationships | 返回元素中已注册关系的列表。 | 
| .gif) | GetReverseMultiRelationship<TFrom, TTo> |  | 
| .gif) | GetReverseSingleRelationship<TFrom, TTo> |  | 
| .gif) | GetSingleRelationship<TFrom, TTo> |  | 
| .gif) | GetType | 获取当前实例的 Type。 (继承自 Object。) | 
| .gif) | IsDeleted | 返回一个值,该值指示是否已删除当前元素。 | 
| .gif) | IsExternal | 返回一个值,该值指示是否从当前架构之外的源加载的当前元素。 | 
| .gif) | MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) | 
| .gif) .gif) | RegisterElementClass<TElement> |  | 
| .gif) .gif) | RegisterExternalPropertyClass<TProperty> |  | 
| .gif) .gif) | RegisterPropertyClass<TProperty> |  | 
| .gif) .gif) | RegisterRelationshipClass<TReferencedInterface>(ModelElementClass, String, ModelRelationshipType, ModelRelationshipCardinalityStyle, Boolean) |  | 
| .gif) .gif) | RegisterRelationshipClass<TReferencedInterface>(ModelElementClass, String, ModelRelationshipType, ModelRelationshipCardinalityStyle, Boolean, Boolean) |  | 
| .gif) .gif) | RegisterReverseRelationshipClass<TReferencedInterface> |  | 
| .gif) | RemoveAnnotation | 从元素中移除指定的批注。 | 
| .gif) | SetProperty<TProperty> |  | 
| .gif) | ToString | 返回表示当前对象的字符串。 (继承自 Object。) | 
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参见
参考
Microsoft.Data.Schema.SchemaModel 命名空间
SqlModelElement