PartConventionBuilder.ExportProperties 方法
定义
重载
| ExportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ExportConventionBuilder>) |
使用指定的导出配置,选择部件上要根据指定的谓词导出的属性。Selects the properties on the part to export according to the specified predicate, using the specified export configuration. |
| ExportProperties(Predicate<PropertyInfo>) |
选择部件上要根据指定的谓词导出的属性。Selects the properties on the part to export according to the specified predicate. |
| ExportProperties<T>(Predicate<PropertyInfo>) |
使用指定的协定类型,选择部件上要根据指定的谓词导出的属性。Selects the properties on the part to export according to the specified predicate, using the specified contract type. |
| ExportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo,ExportConventionBuilder>) |
使用指定的协定类型和导出配置,选择部件上要根据指定的谓词导出的属性。Selects the properties on the part to export according to the specified predicate, using the specified contract type and export configuration. |
ExportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ExportConventionBuilder>)
使用指定的导出配置,选择部件上要根据指定的谓词导出的属性。Selects the properties on the part to export according to the specified predicate, using the specified export configuration.
public:
System::Composition::Convention::PartConventionBuilder ^ ExportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter, Action<System::Reflection::PropertyInfo ^, System::Composition::Convention::ExportConventionBuilder ^> ^ exportConfiguration);
public System.Composition.Convention.PartConventionBuilder ExportProperties (Predicate<System.Reflection.PropertyInfo> propertyFilter, Action<System.Reflection.PropertyInfo,System.Composition.Convention.ExportConventionBuilder> exportConfiguration);
member this.ExportProperties : Predicate<System.Reflection.PropertyInfo> * Action<System.Reflection.PropertyInfo, System.Composition.Convention.ExportConventionBuilder> -> System.Composition.Convention.PartConventionBuilder
Public Function ExportProperties (propertyFilter As Predicate(Of PropertyInfo), exportConfiguration As Action(Of PropertyInfo, ExportConventionBuilder)) As PartConventionBuilder
参数
- propertyFilter
- Predicate<PropertyInfo>
一个谓词,指定要导出的属性。A predicate that specifies the properites to export.
- exportConfiguration
- Action<PropertyInfo,ExportConventionBuilder>
配置导出的操作。An action that configures the exports.
返回
一个部件生成器,可用于进一步配置部件。A part builder that can be used to further configure the part.
适用于
ExportProperties(Predicate<PropertyInfo>)
选择部件上要根据指定的谓词导出的属性。Selects the properties on the part to export according to the specified predicate.
public:
System::Composition::Convention::PartConventionBuilder ^ ExportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter);
public System.Composition.Convention.PartConventionBuilder ExportProperties (Predicate<System.Reflection.PropertyInfo> propertyFilter);
member this.ExportProperties : Predicate<System.Reflection.PropertyInfo> -> System.Composition.Convention.PartConventionBuilder
Public Function ExportProperties (propertyFilter As Predicate(Of PropertyInfo)) As PartConventionBuilder
参数
- propertyFilter
- Predicate<PropertyInfo>
一个谓词,指定要导出的属性。A predicate that specifies the properites to export.
返回
一个部件生成器,可用于进一步配置部件。A part builder that can be used to further configure the part.
适用于
ExportProperties<T>(Predicate<PropertyInfo>)
使用指定的协定类型,选择部件上要根据指定的谓词导出的属性。Selects the properties on the part to export according to the specified predicate, using the specified contract type.
public:
generic <typename T>
System::Composition::Convention::PartConventionBuilder ^ ExportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter);
public System.Composition.Convention.PartConventionBuilder ExportProperties<T> (Predicate<System.Reflection.PropertyInfo> propertyFilter);
member this.ExportProperties : Predicate<System.Reflection.PropertyInfo> -> System.Composition.Convention.PartConventionBuilder
Public Function ExportProperties(Of T) (propertyFilter As Predicate(Of PropertyInfo)) As PartConventionBuilder
类型参数
- T
协定类型。The contract type.
参数
- propertyFilter
- Predicate<PropertyInfo>
一个谓词,指定要导出的属性。A predicate that specifies the properites to export.
返回
一个部件生成器,可用于进一步配置部件。A part builder that can be used to further configure the part.
适用于
ExportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo,ExportConventionBuilder>)
使用指定的协定类型和导出配置,选择部件上要根据指定的谓词导出的属性。Selects the properties on the part to export according to the specified predicate, using the specified contract type and export configuration.
public:
generic <typename T>
System::Composition::Convention::PartConventionBuilder ^ ExportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter, Action<System::Reflection::PropertyInfo ^, System::Composition::Convention::ExportConventionBuilder ^> ^ exportConfiguration);
public System.Composition.Convention.PartConventionBuilder ExportProperties<T> (Predicate<System.Reflection.PropertyInfo> propertyFilter, Action<System.Reflection.PropertyInfo,System.Composition.Convention.ExportConventionBuilder> exportConfiguration);
member this.ExportProperties : Predicate<System.Reflection.PropertyInfo> * Action<System.Reflection.PropertyInfo, System.Composition.Convention.ExportConventionBuilder> -> System.Composition.Convention.PartConventionBuilder
Public Function ExportProperties(Of T) (propertyFilter As Predicate(Of PropertyInfo), exportConfiguration As Action(Of PropertyInfo, ExportConventionBuilder)) As PartConventionBuilder
类型参数
- T
协定类型。The contract type.
参数
- propertyFilter
- Predicate<PropertyInfo>
一个谓词,指定要导出的属性。A predicate that specifies the properites to export.
- exportConfiguration
- Action<PropertyInfo,ExportConventionBuilder>
配置导出的操作。An action that configures the exports.
返回
一个部件生成器,可用于进一步配置部件。A part builder that can be used to further configure the part.