ComposablePart 類別

定義

為匯入物件及產生匯出物件的可組合的組件,定義抽象基底類別。

public ref class ComposablePart abstract
public abstract class ComposablePart
type ComposablePart = class
Public MustInherit Class ComposablePart
繼承
ComposablePart

建構函式

ComposablePart()

初始化 ComposablePart 類別的新執行個體。

屬性

ExportDefinitions

取得 ExportDefinition 物件的集合,這些物件描述組件所提供的匯出物件。

ImportDefinitions

取得 ImportDefinition 物件的集合,這些物件描述組件所需的匯入物件。

Metadata

取得 ComposablePart 物件的中繼資料。

方法

Activate()

當已在部分設定所有匯入,而可以擷取匯出時呼叫。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetExportedValue(ExportDefinition)

取得指定的 ExportDefinition 物件所描述的匯出物件。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
SetImport(ImportDefinition, IEnumerable<Export>)

設定指定的 ImportDefinition 物件所描述,將由指定的匯出所滿足的匯入。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於