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