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>)。 |
回頁首
備註
這是基本型別介面,應由不知道明確模型介面的功能使用。