ComposablePart 類別

定義

定義可組合部分的抽象基底類別,用於匯入物件並產生匯出物件。

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

建構函式

名稱 Description
ComposablePart()

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

屬性

名稱 Description
ExportDefinitions

取得一組 ExportDefinition 描述該零件匯出物件的物件集合。

ImportDefinitions

取得描述該零件所需匯入物件的集合 ImportDefinition

Metadata

取得物件的 ComposablePart 元資料。

方法

名稱 Description
Activate()

當所有零件匯入都設定完成,且可以取回匯出時呼叫。

Equals(Object)

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

(繼承來源 Object)
GetExportedValue(ExportDefinition)

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

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

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

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

ToString()

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

(繼承來源 Object)

適用於