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) | 返回指向一个指定元素的新关系项,或者替换现有项。 |
页首
备注
此接口由无法使用显式模型接口的功能使用。