共用方式為


PartConventionBuilder<T> 類別

定義

使用強型別傳回值,將類型設定為 Managed Extensibility Framework (MEF) 組件。

generic <typename T>
public ref class PartConventionBuilder : System::Composition::Convention::PartConventionBuilder
public class PartConventionBuilder<T> : System.Composition.Convention.PartConventionBuilder
type PartConventionBuilder<'T> = class
    inherit PartConventionBuilder
Public Class PartConventionBuilder(Of T)
Inherits PartConventionBuilder

類型參數

T

部分的類型。

繼承
PartConventionBuilder<T>

方法

AddPartMetadata(String, Func<Type,Object>)

將具有指定之名稱及值的中繼資料加入至組件。 值是由函式所傳回,該函式將組件類型對應到中繼資料值。

(繼承來源 PartConventionBuilder)
AddPartMetadata(String, Object)

將具有指定之名稱及值的中繼資料加入至組件。

(繼承來源 PartConventionBuilder)
Equals(Object)

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

(繼承來源 Object)
Export()

將組件及其具象類型匯出為合約類型。

(繼承來源 PartConventionBuilder)
Export(Action<ExportConventionBuilder>)

匯出具有指定之組態的組件。

(繼承來源 PartConventionBuilder)
Export<T>()

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

(繼承來源 PartConventionBuilder)
Export<T>(Action<ExportConventionBuilder>)

使用指定的組態,匯出具有指定之合約類型的組件。

(繼承來源 PartConventionBuilder)
ExportInterfaces()

選取要匯出之組件類型上的所有介面。

(繼承來源 PartConventionBuilder)
ExportInterfaces(Predicate<Type>)

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

(繼承來源 PartConventionBuilder)
ExportInterfaces(Predicate<Type>, Action<Type,ExportConventionBuilder>)

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

(繼承來源 PartConventionBuilder)
ExportProperties(Predicate<PropertyInfo>)

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

(繼承來源 PartConventionBuilder)
ExportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ExportConventionBuilder>)

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

(繼承來源 PartConventionBuilder)
ExportProperties<T>(Predicate<PropertyInfo>)

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

(繼承來源 PartConventionBuilder)
ExportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo,ExportConventionBuilder>)

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

(繼承來源 PartConventionBuilder)
ExportProperty(Expression<Func<T,Object>>)

匯出指定的屬性。

ExportProperty(Expression<Func<T,Object>>, Action<ExportConventionBuilder>)

使用指定的組態,匯出指定的屬性。

ExportProperty<TContract>(Expression<Func<T,Object>>)

將指定的屬性匯出為指定的合約類型。

ExportProperty<TContract>(Expression<Func<T,Object>>, Action<ExportConventionBuilder>)

使用指定的組態,將指定的屬性匯出為指定的合約類型。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

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

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

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

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

(繼承來源 PartConventionBuilder)
ImportProperties<T>(Predicate<PropertyInfo>)

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

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

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

(繼承來源 PartConventionBuilder)
ImportProperty(Expression<Func<T,Object>>)

匯入指定的屬性。

ImportProperty(Expression<Func<T,Object>>, Action<ImportConventionBuilder>)

使用指定的組態,匯入指定的屬性。

ImportProperty<TContract>(Expression<Func<T,Object>>)

使用指定的合約類型,匯入指定的屬性。

ImportProperty<TContract>(Expression<Func<T,Object>>, Action<ImportConventionBuilder>)

使用指定的合約類型和組態,匯入指定的屬性。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
NotifyImportsSatisfied(Expression<Action<T>>)

選取要在組合完成時呼叫方法。

NotifyImportsSatisfied(Predicate<MethodInfo>)

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

(繼承來源 PartConventionBuilder)
SelectConstructor(Expression<Func<ParameterImportConventionBuilder,T>>)

選取要用於組合的建構函式。

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

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

(繼承來源 PartConventionBuilder)
SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>, Action<ParameterInfo,ImportConventionBuilder>)

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

(繼承來源 PartConventionBuilder)
Shared()

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

(繼承來源 PartConventionBuilder)
Shared(String)

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

(繼承來源 PartConventionBuilder)
ToString()

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

(繼承來源 Object)

適用於