IModelMultiRelationship 接口

用于添加多个关系。

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

语法

声明
Public Interface IModelMultiRelationship _
    Inherits IModelRelationship, IModelEntity, IList(Of IModelElement),  _
    ICollection(Of IModelElement), IEnumerable(Of IModelElement), IEnumerable
public interface IModelMultiRelationship : IModelRelationship, 
    IModelEntity, IList<IModelElement>, ICollection<IModelElement>, 
    IEnumerable<IModelElement>, IEnumerable
public interface class IModelMultiRelationship : IModelRelationship, 
    IModelEntity, IList<IModelElement^>, ICollection<IModelElement^>, 
    IEnumerable<IModelElement^>, IEnumerable
type IModelMultiRelationship =  
    interface
        interface IModelRelationship
        interface IModelEntity
        interface IList<IModelElement>
        interface ICollection<IModelElement>
        interface IEnumerable<IModelElement>
        interface IEnumerable
    end
public interface IModelMultiRelationship extends IModelRelationship, IModelEntity, IList<IModelElement>, ICollection<IModelElement>, IEnumerable<IModelElement>, IEnumerable

IModelMultiRelationship 类型公开以下成员。

属性

  名称 说明
公共属性 Count 获取 ICollection<T> 中包含的元素数。 (继承自 ICollection<IModelElement>。)
公共属性 FromElement 获取相关元素。 (继承自 IModelRelationship。)
公共属性 IsReadOnly 获取一个值,该值指示 ICollection<T> 是否为只读。 (继承自 ICollection<IModelElement>。)
公共属性 Item 获取或设置指定索引处的元素。 (继承自 IList<IModelElement>。)
公共属性 Model 获取模型引用。 (继承自 IModelEntity。)
公共属性 RelationshipClass 获取元数据类。 (继承自 IModelRelationship。)

页首

方法

  名称 说明
公共方法 Add 将某项添加到 ICollection<T> 中。 (继承自 ICollection<IModelElement>。)
公共方法 AddElement 将一个关系项(基于元素)添加到关系的末尾。
公共方法 AddRelationshipEntry 将一个空的关系项添加到关系的末尾。
公共方法 Clear ICollection<T> 中移除所有项。 (继承自 ICollection<IModelElement>。)
公共方法 Contains 确定 ICollection<T> 是否包含特定值。 (继承自 ICollection<IModelElement>。)
公共方法 CopyTo 从特定的 Array 索引处开始,将 ICollection<T> 的元素复制到一个 Array 中。 (继承自 ICollection<IModelElement>。)
公共方法 GetEnumerator() 返回一个循环访问集合的枚举数。 (继承自 IEnumerable<IModelElement>。)
公共方法 GetEnumerator() 返回一个循环访问集合的枚举数。 (继承自 IEnumerable。)
公共方法 GetReferencedElements 返回相关元素。 (继承自 IModelRelationship。)
公共方法 GetReferencedRelationshipEntries 返回相关的关系项。 (继承自 IModelRelationship。)
公共方法 GetRelationshipEntry 返回位于指定索引处的关系项。
公共方法 IndexOf(T) 确定 IList<T> 中特定项的索引。 (继承自 IList<IModelElement>。)
公共方法 IndexOf(IModelElement, Int32) 报告基于指定元素的关系项首次出现时的位置索引。
公共方法 Insert 将一个项插入指定索引处的 IList<T>。 (继承自 IList<IModelElement>。)
公共方法 InsertElement 在指定的索引处插入关系项(基于元素)。
公共方法 InsertRelationshipEntry 在指定的索引处插入一个空的关系项。
公共方法 Remove ICollection<T> 中移除特定对象的第一个匹配项。 (继承自 ICollection<IModelElement>。)
公共方法 RemoveAt 移除指定索引处的 IList<T> 项。 (继承自 IList<IModelElement>。)

页首

请参见

参考

Microsoft.Data.Schema.SchemaModel 命名空间