PartBuilder<T> 类

定义

扩展 PartBuilder 类,以允许使用表达式选择成员。

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

类型参数

T

目标的类型。

继承
PartBuilder<T>

方法

AddMetadata(String, Func<Type,Object>)

向类型匹配添加元数据。

(继承自 PartBuilder)
AddMetadata(String, Object)

向类型匹配添加元数据。

(继承自 PartBuilder)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
Export()

指定应导出的匹配类型。

(继承自 PartBuilder)
Export(Action<ExportBuilder>)

指定应导出的匹配类型,并为结果导出提供配置信息。

(继承自 PartBuilder)
Export<T>()

使用指定的协定类型,指定应导出的匹配类型。

(继承自 PartBuilder)
Export<T>(Action<ExportBuilder>)

通过使用指定协定类型指定应导出的匹配类型,并为结果导出提供配置信息。

(继承自 PartBuilder)
ExportInterfaces()

指定所有应导出的匹配类型的接口。

(继承自 PartBuilder)
ExportInterfaces(Predicate<Type>)

在应导出的匹配类型指定一组接口。

(继承自 PartBuilder)
ExportInterfaces(Predicate<Type>, Action<Type,ExportBuilder>)

在应导出的匹配类型指定一组接口,并为结果导出提供配置信息。

(继承自 PartBuilder)
ExportProperties(Predicate<PropertyInfo>)

在匹配类型上指定一组应导出的属性。

(继承自 PartBuilder)
ExportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ExportBuilder>)

在应导出的匹配类型指定一组属性,并为这些导出提供配置信息。

(继承自 PartBuilder)
ExportProperties<T>(Predicate<PropertyInfo>)

使用指定的协定类型,在导出匹配的类型指定一组属性。

(继承自 PartBuilder)
ExportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo,ExportBuilder>)

通过使用指定协定类型在应被导出的匹配类型上指定一组属性,并为结果导出提供配置信息。

(继承自 PartBuilder)
ExportProperty(Expression<Func<T,Object>>)

指定属性应导出。

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

指定应导出的属性,并为结果导出提供配置信息。

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

指定应导出为指定的协定类型的属性。

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

指定应导出作为指定的协定类型的属性,并为结果导出提供配置信息。

GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
ImportProperties(Predicate<PropertyInfo>)

在应导入的匹配类型上指定一组属性。

(继承自 PartBuilder)
ImportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ImportBuilder>)

在应标记为导入的匹配类型上指定一组属性,并为结果导入提供配置信息。

(继承自 PartBuilder)
ImportProperties<T>(Predicate<PropertyInfo>)

使用指定的协定类型,在应标记为导入的匹配类型上指定一组属性。

(继承自 PartBuilder)
ImportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo,ImportBuilder>)

通过使用指定协定类型在应标记为导入的匹配类型上指定一组属性,并为结果导入提供配置信息。

(继承自 PartBuilder)
ImportProperty(Expression<Func<T,Object>>)

指定属性应导入。

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

指定应导入的属性,并为结果导入提供配置信息。

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

使用指定的协定名称指定应导入的属性。

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

使用指定的协定名称指定应导入的属性,并为结果导入提供配置信息。

MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
SelectConstructor(Expression<Func<ParameterImportBuilder,T>>)

指定应用作导入的构造函数匹配类型的构造函数。

SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>)

指定应用作个导入的构造函数匹配类型的构造函数。

(继承自 PartBuilder)
SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>, Action<ParameterInfo,ImportBuilder>)

指定应用作导入构造函数匹配类型的构造函数,并为结果导入提供配置信息。

(继承自 PartBuilder)
SetCreationPolicy(CreationPolicy)

指定匹配类型的创建策略。

(继承自 PartBuilder)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于