IModelSingleRelationship 接口

如果使用此接口,则右侧可出现一个元素。

命名空间:  Microsoft.Data.Schema.SchemaModel
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)

语法

声明
Public Interface IModelSingleRelationship _
    Inherits IModelRelationship, IModelEntity
public interface IModelSingleRelationship : IModelRelationship, 
    IModelEntity
public interface class IModelSingleRelationship : IModelRelationship, 
    IModelEntity
type IModelSingleRelationship =  
    interface
        interface IModelRelationship
        interface IModelEntity
    end
public interface IModelSingleRelationship extends IModelRelationship, IModelEntity

IModelSingleRelationship 类型公开以下成员。

属性

  名称 说明
公共属性 Element 获取或设置相关的元素。
公共属性 FromElement 获取相关元素。 (继承自 IModelRelationship。)
公共属性 Model 获取模型引用。 (继承自 IModelEntity。)
公共属性 RelationshipClass 获取元数据类。 (继承自 IModelRelationship。)

页首

方法

  名称 说明
公共方法 Clear 删除关系项(如果存在)。
公共方法 GetReferencedElements 返回相关元素。 (继承自 IModelRelationship。)
公共方法 GetReferencedRelationshipEntries 返回相关的关系项。 (继承自 IModelRelationship。)
公共方法 GetRelationshipEntry 返回相关的关系项。
公共方法 RecreateRelationshipEntry() 返回新的空关系项,或者替换现有项。
公共方法 RecreateRelationshipEntry(IModelElement) 返回指向一个指定元素的新关系项,或者替换现有项。

页首

备注

此接口由无法使用显式模型接口的功能使用。

请参见

参考

Microsoft.Data.Schema.SchemaModel 命名空间