PartBuilder.ExportProperties 方法

定义

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

重载

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

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

ExportProperties(Predicate<PropertyInfo>)

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

ExportProperties<T>(Predicate<PropertyInfo>)

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

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

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

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

Source:
PartBuilder.cs
Source:
PartBuilder.cs
Source:
PartBuilder.cs

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

public:
 System::ComponentModel::Composition::Registration::PartBuilder ^ ExportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter, Action<System::Reflection::PropertyInfo ^, System::ComponentModel::Composition::Registration::ExportBuilder ^> ^ exportConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder ExportProperties (Predicate<System.Reflection.PropertyInfo> propertyFilter, Action<System.Reflection.PropertyInfo,System.ComponentModel.Composition.Registration.ExportBuilder> exportConfiguration);
member this.ExportProperties : Predicate<System.Reflection.PropertyInfo> * Action<System.Reflection.PropertyInfo, System.ComponentModel.Composition.Registration.ExportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ExportProperties (propertyFilter As Predicate(Of PropertyInfo), exportConfiguration As Action(Of PropertyInfo, ExportBuilder)) As PartBuilder

参数

propertyFilter
Predicate<PropertyInfo>

指定属性集的谓语。

exportConfiguration
Action<PropertyInfo,ExportBuilder>

一个包含有关导出的配置信息的的对象。 默认值是 null

返回

允许链接的当前对象。

例外

propertyFilternull

适用于

ExportProperties(Predicate<PropertyInfo>)

Source:
PartBuilder.cs
Source:
PartBuilder.cs
Source:
PartBuilder.cs

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

public:
 System::ComponentModel::Composition::Registration::PartBuilder ^ ExportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter);
public System.ComponentModel.Composition.Registration.PartBuilder ExportProperties (Predicate<System.Reflection.PropertyInfo> propertyFilter);
member this.ExportProperties : Predicate<System.Reflection.PropertyInfo> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ExportProperties (propertyFilter As Predicate(Of PropertyInfo)) As PartBuilder

参数

propertyFilter
Predicate<PropertyInfo>

指定属性集的谓语。

返回

允许链接的当前对象。

例外

propertyFilternull

适用于

ExportProperties<T>(Predicate<PropertyInfo>)

Source:
PartBuilder.cs
Source:
PartBuilder.cs
Source:
PartBuilder.cs

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

public:
generic <typename T>
 System::ComponentModel::Composition::Registration::PartBuilder ^ ExportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter);
public System.ComponentModel.Composition.Registration.PartBuilder ExportProperties<T> (Predicate<System.Reflection.PropertyInfo> propertyFilter);
member this.ExportProperties : Predicate<System.Reflection.PropertyInfo> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ExportProperties(Of T) (propertyFilter As Predicate(Of PropertyInfo)) As PartBuilder

类型参数

T

此协定的类型。

参数

propertyFilter
Predicate<PropertyInfo>

指定属性集的谓语。

返回

允许链接的当前对象。

例外

propertyFilternull

适用于

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

Source:
PartBuilder.cs
Source:
PartBuilder.cs
Source:
PartBuilder.cs

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

public:
generic <typename T>
 System::ComponentModel::Composition::Registration::PartBuilder ^ ExportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter, Action<System::Reflection::PropertyInfo ^, System::ComponentModel::Composition::Registration::ExportBuilder ^> ^ exportConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder ExportProperties<T> (Predicate<System.Reflection.PropertyInfo> propertyFilter, Action<System.Reflection.PropertyInfo,System.ComponentModel.Composition.Registration.ExportBuilder> exportConfiguration);
member this.ExportProperties : Predicate<System.Reflection.PropertyInfo> * Action<System.Reflection.PropertyInfo, System.ComponentModel.Composition.Registration.ExportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ExportProperties(Of T) (propertyFilter As Predicate(Of PropertyInfo), exportConfiguration As Action(Of PropertyInfo, ExportBuilder)) As PartBuilder

类型参数

T

此协定的类型。

参数

propertyFilter
Predicate<PropertyInfo>

指定属性集的谓语。

exportConfiguration
Action<PropertyInfo,ExportBuilder>

一个包含有关导出的配置信息的的对象。 默认值是 null

返回

允许链接的当前对象。

例外

propertyFilternull

适用于