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>, Action<Type,ExportBuilder>)

针对应导出的匹配类型指定一组接口,并为生成的导出提供配置信息。

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

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

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

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

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

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

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

指定应使用指定协定类型导出的匹配类型的一组属性,并为生成的导出提供配置信息。

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

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

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

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

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

指定应导出的属性。

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

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

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

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

GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

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

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

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

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

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

指定应使用指定协定类型标记为导入的匹配类型的一组属性,并为生成的导入提供配置信息。

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

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

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

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

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

指定应导入属性。

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

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

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

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

MemberwiseClone()

创建当前 Object的浅表副本。

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

指定应用作导入构造函数的构造函数。

SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>, Action<ParameterInfo,ImportBuilder>)

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

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

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

(继承自 PartBuilder)
SetCreationPolicy(CreationPolicy)

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

(继承自 PartBuilder)
ToString()

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

(继承自 Object)

适用于