IModelSingleRelationship<TFrom, TTo> 介面

如果使用了這個介面,則在右側可以有單一項目。

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

語法

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

型別參數

  • TFrom
  • TTo

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

屬性

  名稱 說明
公用屬性 Element 取得或設定相關的項目。 (繼承自 IModelSingleRelationship)。
公用屬性 Element 取得或設定相關的項目。
公用屬性 FromElement 取得相關的項目。 (繼承自 IModelRelationship)。
公用屬性 FromElement 取得相關的項目。 (繼承自 IModelRelationship<TFrom, TTo>)。
公用屬性 Model 取得模型參考。 (繼承自 IModelEntity)。
公用屬性 RelationshipClass 取得中繼資料類別。 (繼承自 IModelRelationship)。

回頁首

方法

  名稱 說明
公用方法 Clear 如果有,則刪除關聯性項目。 (繼承自 IModelSingleRelationship)。
公用方法 GetReferencedElements() 傳回相關的項目。 (繼承自 IModelRelationship)。
公用方法 GetReferencedElements() 取得相關項目的清單。 (繼承自 IModelRelationship<TFrom, TTo>)。
公用方法 GetReferencedRelationshipEntries 傳回相關的關聯性項目。 (繼承自 IModelRelationship)。
公用方法 GetRelationshipEntry 傳回相關的關聯性項目。 (繼承自 IModelSingleRelationship)。
公用方法 RecreateRelationshipEntry() 傳回新的空白關聯性項目,或取代現有關聯性項目。 (繼承自 IModelSingleRelationship)。
公用方法 RecreateRelationshipEntry(TTo) 傳回指向指定項目 (Element) 的新關聯性項目 (Entry),或取代任何現有的關聯性項目。
公用方法 RecreateRelationshipEntry(IModelElement) 傳回指向指定之項目 (Element) 的新關聯性項目 (Entry),或取代現有關聯性項目。 (繼承自 IModelSingleRelationship)。

回頁首

請參閱

參考

Microsoft.Data.Schema.SchemaModel 命名空間