共用方式為


IModelMultiRelationship<TFrom, TTo> 介面

用於加入多重關聯性。

命名空間:  Microsoft.Data.Schema.SchemaModel
組件:  Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)

語法

'宣告
Public Interface IModelMultiRelationship(Of TFrom As {Class, IModelElement}, TTo As {Class, IModelElement}) _
    Inherits IModelRelationship(Of TFrom, TTo), IModelRelationship, IModelEntity,  _
    IList(Of TTo), ICollection(Of TTo), IEnumerable(Of TTo),  _
    IEnumerable
public interface IModelMultiRelationship<TFrom, TTo> : IModelRelationship<TFrom, TTo>, 
    IModelRelationship, IModelEntity, IList<TTo>, ICollection<TTo>, IEnumerable<TTo>, 
    IEnumerable
where TFrom : class, IModelElement
where TTo : class, IModelElement
generic<typename TFrom, typename TTo>
where TFrom : ref class, IModelElement
where TTo : ref class, IModelElement
public interface class IModelMultiRelationship : IModelRelationship<TFrom, TTo>, 
    IModelRelationship, IModelEntity, IList<TTo>, ICollection<TTo>, IEnumerable<TTo>, 
    IEnumerable
type IModelMultiRelationship<'TFrom, 'TTo when 'TFrom : not struct and IModelElement when 'TTo : not struct and IModelElement> =  
    interface
        interface IModelRelationship<'TFrom, 'TTo>
        interface IModelRelationship
        interface IModelEntity
        interface IList<'TTo>
        interface ICollection<'TTo>
        interface IEnumerable<'TTo>
        interface IEnumerable
    end
JScript 不支援泛型型別或方法。

型別參數

  • TFrom
  • TTo

IModelMultiRelationship<TFrom, TTo> 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 Count 取得在 ICollection<T> 中所包含的元素數。 (繼承自 ICollection<TTo>)。
公用屬性 FromElement 取得相關的項目。 (繼承自 IModelRelationship)。
公用屬性 FromElement 取得相關的項目。 (繼承自 IModelRelationship<TFrom, TTo>)。
公用屬性 IsReadOnly 取得值,這個值表示 ICollection<T> 是否為唯讀。 (繼承自 ICollection<TTo>)。
公用屬性 Item 取得或設定指定之索引處的項目。 (繼承自 IList<TTo>)。
公用屬性 Model 取得模型參考。 (繼承自 IModelEntity)。
公用屬性 RelationshipClass 取得中繼資料類別。 (繼承自 IModelRelationship)。

回頁首

方法

  名稱 說明
公用方法 Add 將項目加入至 ICollection<T> 中。 (繼承自 ICollection<TTo>)。
公用方法 AddElement 在關聯性的結尾處插入關聯性項目 (Entry) (根據項目 (Element))。
公用方法 AddRelationshipEntry 將空白關聯性項目 (Entry) 加入到該關聯性的結尾。
公用方法 Clear 將所有項目從 ICollection<T> 移除。 (繼承自 ICollection<TTo>)。
公用方法 Contains 判斷 ICollection<T> 是否包含特定值。 (繼承自 ICollection<TTo>)。
公用方法 CopyTo 從特定的 Array 索引開始,複製 ICollection<T> 項目至 Array。 (繼承自 ICollection<TTo>)。
公用方法 GetEnumerator() 傳回可逐一查看集合的列舉程式。 (繼承自 IEnumerable<TTo>)。
公用方法 GetEnumerator() 傳回會逐一查看集合的列舉程式。 (繼承自 IEnumerable)。
公用方法 GetReferencedElements() 傳回相關的項目。 (繼承自 IModelRelationship)。
公用方法 GetReferencedElements() 取得相關項目的清單。 (繼承自 IModelRelationship<TFrom, TTo>)。
公用方法 GetReferencedRelationshipEntries 傳回相關的關聯性項目。 (繼承自 IModelRelationship)。
公用方法 GetRelationshipEntry 傳回特定索引位置的關聯性項目 (Entry)。
公用方法 IndexOf(T) 判斷 IList<T> 中特定項目的索引。 (繼承自 IList<TTo>)。
公用方法 IndexOf(TTo, Int32) 根據指定的項目 (Element),回報第一個出現的關聯性項目 (Entry) 的索引。
公用方法 Insert 將項目插入位於指定索引的 IList<T>。 (繼承自 IList<TTo>)。
公用方法 InsertElement 在指定的索引位置插入關聯性項目 (Entry) (根據項目 (Element))。
公用方法 InsertRelationshipEntry 在指定的索引位置插入空白的關聯性項目 (Entry)。
公用方法 Remove ICollection<T> 移除特定物件之第一個符合的元素。 (繼承自 ICollection<TTo>)。
公用方法 RemoveAt 移除指定之索引處的 IList<T> 項目。 (繼承自 IList<TTo>)。

回頁首

備註

這是基本型別介面,應由不知道明確模型介面的功能使用。

請參閱

參考

Microsoft.Data.Schema.SchemaModel 命名空間