共用方式為


IModelRelationship<TFrom, TTo> 介面

用於取得關聯性兩邊的項目。

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

語法

'宣告
Public Interface IModelRelationship(Of TFrom As {Class, IModelElement}, TTo As {Class, IModelElement}) _
    Inherits IModelRelationship, IModelEntity
public interface IModelRelationship<TFrom, TTo> : IModelRelationship, 
    IModelEntity
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 IModelRelationship : IModelRelationship, 
    IModelEntity
type IModelRelationship<'TFrom, 'TTo when 'TFrom : not struct and IModelElement when 'TTo : not struct and IModelElement> =  
    interface
        interface IModelRelationship
        interface IModelEntity
    end
JScript 不支援泛型型別或方法。

型別參數

  • TFrom
  • TTo

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

屬性

  名稱 說明
公用屬性 FromElement 取得相關的項目。 (繼承自 IModelRelationship)。
公用屬性 FromElement 取得相關的項目。
公用屬性 Model 取得模型參考。 (繼承自 IModelEntity)。
公用屬性 RelationshipClass 取得中繼資料類別。 (繼承自 IModelRelationship)。

回頁首

方法

  名稱 說明
公用方法 GetReferencedElements() 傳回相關的項目。 (繼承自 IModelRelationship)。
公用方法 GetReferencedElements() 取得相關項目的清單。
公用方法 GetReferencedRelationshipEntries 傳回相關的關聯性項目。 (繼承自 IModelRelationship)。

回頁首

請參閱

參考

Microsoft.Data.Schema.SchemaModel 命名空間