共用方式為


PartConventionBuilder 類別

定義

將類型設定為 Managed Extensibility Framework (MEF) 組件。

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

方法

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>)

根據指定的篩選條件,選取要匯出之組件類型上的介面。

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

使用指定的匯出組態,根據指定的篩選條件,選取要匯出之組件類型上的介面。

ExportProperties(Predicate<PropertyInfo>)

根據指定的述詞,選取要匯出之組件上的屬性。

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

使用指定的匯出組態,根據指定的述詞,選取要匯出之組件上的屬性。

ExportProperties<T>(Predicate<PropertyInfo>)

使用指定的合約類型,根據指定的述詞,選取要匯出之組件上的屬性。

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

使用指定的合約類型和匯出組態,根據指定的述詞,選取要匯出之組件上的屬性。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

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

根據指定的述詞,選取要匯入之組件上的屬性。

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

使用指定的匯入組態,根據指定的述詞,選取要匯入之組件上的屬性。

ImportProperties<T>(Predicate<PropertyInfo>)

使用指定的合約類型,根據指定的述詞,選取要匯入之組件上的屬性。

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

使用指定的合約類型和匯入組態,根據指定的述詞,選取要匯入之組件上的屬性。

MemberwiseClone()

建立目前 Object 的淺層複製。

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

選取要在組合完成時當做通知的方法。

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

使用指定的函式,選取用來初始化組件的建構函式。

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

使用指定的函式和匯入組態,選取用來初始化組件的建構函式。

Shared()

將這個組件標記為要在整個組合中共用。

Shared(String)

將這個組件標記為要在指定的界限內共用。

ToString()

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

(繼承來源 Object)

適用於