PartBuilder.ImportProperties 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在应导入的匹配类型上指定一组属性。
重载
ImportProperties(Predicate<PropertyInfo>) |
在应导入的匹配类型上指定一组属性。 |
ImportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ImportBuilder>) |
在应标记为导入的匹配类型上指定一组属性,并为结果导入提供配置信息。 |
ImportProperties<T>(Predicate<PropertyInfo>) |
使用指定的协定类型,在应标记为导入的匹配类型上指定一组属性。 |
ImportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo,ImportBuilder>) |
通过使用指定协定类型在应标记为导入的匹配类型上指定一组属性,并为结果导入提供配置信息。 |
ImportProperties(Predicate<PropertyInfo>)
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
在应导入的匹配类型上指定一组属性。
public:
System::ComponentModel::Composition::Registration::PartBuilder ^ ImportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter);
public System.ComponentModel.Composition.Registration.PartBuilder ImportProperties (Predicate<System.Reflection.PropertyInfo> propertyFilter);
member this.ImportProperties : Predicate<System.Reflection.PropertyInfo> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ImportProperties (propertyFilter As Predicate(Of PropertyInfo)) As PartBuilder
参数
- propertyFilter
- Predicate<PropertyInfo>
指定属性集的谓语。
返回
允许链接的当前对象。
例外
propertyFilter
为 null
。
适用于
ImportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ImportBuilder>)
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
在应标记为导入的匹配类型上指定一组属性,并为结果导入提供配置信息。
public:
System::ComponentModel::Composition::Registration::PartBuilder ^ ImportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter, Action<System::Reflection::PropertyInfo ^, System::ComponentModel::Composition::Registration::ImportBuilder ^> ^ importConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder ImportProperties (Predicate<System.Reflection.PropertyInfo> propertyFilter, Action<System.Reflection.PropertyInfo,System.ComponentModel.Composition.Registration.ImportBuilder> importConfiguration);
member this.ImportProperties : Predicate<System.Reflection.PropertyInfo> * Action<System.Reflection.PropertyInfo, System.ComponentModel.Composition.Registration.ImportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ImportProperties (propertyFilter As Predicate(Of PropertyInfo), importConfiguration As Action(Of PropertyInfo, ImportBuilder)) As PartBuilder
参数
- propertyFilter
- Predicate<PropertyInfo>
指定属性集的谓语。
- importConfiguration
- Action<PropertyInfo,ImportBuilder>
一个包含有关导入的配置信息的的对象。 默认值是 null
。
返回
允许链接的当前对象。
例外
propertyFilter
为 null
。
适用于
ImportProperties<T>(Predicate<PropertyInfo>)
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
使用指定的协定类型,在应标记为导入的匹配类型上指定一组属性。
public:
generic <typename T>
System::ComponentModel::Composition::Registration::PartBuilder ^ ImportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter);
public System.ComponentModel.Composition.Registration.PartBuilder ImportProperties<T> (Predicate<System.Reflection.PropertyInfo> propertyFilter);
member this.ImportProperties : Predicate<System.Reflection.PropertyInfo> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ImportProperties(Of T) (propertyFilter As Predicate(Of PropertyInfo)) As PartBuilder
类型参数
- T
此协定的类型。
参数
- propertyFilter
- Predicate<PropertyInfo>
指定属性集的谓语。
返回
允许链接的当前对象。
例外
propertyFilter
为 null
。
适用于
ImportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo,ImportBuilder>)
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
通过使用指定协定类型在应标记为导入的匹配类型上指定一组属性,并为结果导入提供配置信息。
public:
generic <typename T>
System::ComponentModel::Composition::Registration::PartBuilder ^ ImportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter, Action<System::Reflection::PropertyInfo ^, System::ComponentModel::Composition::Registration::ImportBuilder ^> ^ importConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder ImportProperties<T> (Predicate<System.Reflection.PropertyInfo> propertyFilter, Action<System.Reflection.PropertyInfo,System.ComponentModel.Composition.Registration.ImportBuilder> importConfiguration);
member this.ImportProperties : Predicate<System.Reflection.PropertyInfo> * Action<System.Reflection.PropertyInfo, System.ComponentModel.Composition.Registration.ImportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ImportProperties(Of T) (propertyFilter As Predicate(Of PropertyInfo), importConfiguration As Action(Of PropertyInfo, ImportBuilder)) As PartBuilder
类型参数
- T
此协定的类型。
参数
- propertyFilter
- Predicate<PropertyInfo>
指定属性集的谓语。
- importConfiguration
- Action<PropertyInfo,ImportBuilder>
一个包含有关导入的配置信息的的对象。 默认值是 null
。
返回
允许链接的当前对象。
例外
propertyFilter
为 null
。