語言

PartConventionBuilder 類別

定義

將型別配置為可管理擴充框架(MEF)部分。

public ref class PartConventionBuilder
public class PartConventionBuilder
type PartConventionBuilder = class
Public Class PartConventionBuilder
繼承
PartConventionBuilder
衍生

方法

名稱 Description
AddPartMetadata(String, Func<Type,Object>)

為零件新增包含指定名稱和值的元資料。 這個值會由一個函式回傳,將零件類型映射到元資料值。

AddPartMetadata(String, Object)

為零件新增包含指定名稱和值的元資料。

Equals(Object)

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

(繼承來源 Object)
Export()

將包含混凝土類型的零件作為合約類型輸出。

Export(Action<ExportConventionBuilder>)

匯出符合指定配置的零件。

Export<T>()

匯出具有指定合約類型的零件。

Export<T>(Action<ExportConventionBuilder>)

透過指定的配置匯出具有指定合約類型的零件。

ExportInterfaces()

選擇要匯出的零件類型上的所有介面。

ExportInterfaces(Predicate<Type>, Action<Type,ExportConventionBuilder>)

根據指定的過濾器,使用指定的匯出設定,選擇要匯出的零件類型的介面。

ExportInterfaces(Predicate<Type>)

根據指定的過濾器選擇要匯出的零件類型的介面。

ExportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ExportConventionBuilder>)

根據指定的謂詞,使用指定的匯出配置,選擇零件上的屬性來匯出。

ExportProperties(Predicate<PropertyInfo>)

根據指定的謂詞選擇零件上的屬性來匯出。

ExportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo,ExportConventionBuilder>)

根據指定的謂詞,使用指定的合約類型與匯出設定,選擇零件上的屬性以匯出。

ExportProperties<T>(Predicate<PropertyInfo>)

根據指定的謂詞,使用指定的合約類型,選擇零件上的屬性來匯出。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
ImportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ImportConventionBuilder>)

根據指定的謂詞,使用指定的匯入設定,選擇要匯入零件的屬性。

ImportProperties(Predicate<PropertyInfo>)

根據指定的謂詞選擇要匯入的零件屬性。

ImportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo,ImportConventionBuilder>)

根據指定的謂詞,使用指定的合約類型與匯入設定,選擇要匯入的零件屬性。

ImportProperties<T>(Predicate<PropertyInfo>)

根據指定的謂詞,使用指定的合約類型,選擇要匯入的零件屬性。

MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
NotifyImportsSatisfied(Predicate<MethodInfo>)

選擇作為作文完成通知的方法。

SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>, Action<ParameterInfo,ImportConventionBuilder>)

透過指定函式選擇用於初始化零件的建構器並匯入設定。

SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>)

透過指定函式選擇用於初始化零件的建構子。

Shared()

標示該部分貫穿整個樂譜。

Shared(String)

標記該零件在指定邊界內共享。

ToString()

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

(繼承來源 Object)

適用於