PartBuilder 类

定义

表示规则,其装饰一组匹配类型,这些类型具有 Managed Extensibility Framework (MEF) 属性。

public ref class PartBuilder
public class PartBuilder
type PartBuilder = class
Public Class PartBuilder
继承
PartBuilder
派生

方法

AddMetadata(String, Func<Type,Object>)

向类型匹配添加元数据。

AddMetadata(String, Object)

向类型匹配添加元数据。

Equals(Object)

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

(继承自 Object)
Export()

指定应导出的匹配类型。

Export(Action<ExportBuilder>)

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

Export<T>()

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

Export<T>(Action<ExportBuilder>)

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

ExportInterfaces()

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

ExportInterfaces(Predicate<Type>)

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

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

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

ExportProperties(Predicate<PropertyInfo>)

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

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

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

ExportProperties<T>(Predicate<PropertyInfo>)

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

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

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

GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

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

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

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

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

ImportProperties<T>(Predicate<PropertyInfo>)

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

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

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

MemberwiseClone()

创建当前 Object 的浅表副本。

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

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

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

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

SetCreationPolicy(CreationPolicy)

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

ToString()

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

(继承自 Object)

适用于