Edit

Share via


PartBuilder.ImportProperties Method

Definition

Specifies a set of properties on the matching types that should be imported.

Overloads

ImportProperties(Predicate<PropertyInfo>)

Specifies a set of properties on the matching types that should be imported.

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

Specifies a set of properties on the matching types that should be marked as imports, and provides configuration information for the resulting imports.

ImportProperties<T>(Predicate<PropertyInfo>)

Specifies a set of properties on the matching types that should be marked as imports using the specified contract type.

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

Specifies a set of properties on the matching types that should be marked as imports by using the specified contract type, and provides configuration information for the resulting imports.

ImportProperties(Predicate<PropertyInfo>)

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

Specifies a set of properties on the matching types that should be imported.

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

Parameters

propertyFilter
Predicate<PropertyInfo>

A predicate that specifies a set of properties.

Returns

The current object, to allow chaining.

Exceptions

propertyFilter is null.

Applies to

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

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

Specifies a set of properties on the matching types that should be marked as imports, and provides configuration information for the resulting imports.

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

Parameters

propertyFilter
Predicate<PropertyInfo>

A predicate that specifies a set of properties.

importConfiguration
Action<PropertyInfo,ImportBuilder>

An object that contains configuration information about the import. The default value is null.

Returns

The current object, to allow chaining.

Exceptions

propertyFilter is null.

Applies to

ImportProperties<T>(Predicate<PropertyInfo>)

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

Specifies a set of properties on the matching types that should be marked as imports using the specified contract type.

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

Type Parameters

T

The type of contract.

Parameters

propertyFilter
Predicate<PropertyInfo>

A predicate that specifies a set of properties.

Returns

The current object, to allow chaining.

Exceptions

propertyFilter is null.

Applies to

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

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

Specifies a set of properties on the matching types that should be marked as imports by using the specified contract type, and provides configuration information for the resulting imports.

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

Type Parameters

T

The type of contract.

Parameters

propertyFilter
Predicate<PropertyInfo>

A predicate that specifies a set of properties.

importConfiguration
Action<PropertyInfo,ImportBuilder>

An object that contains configuration information about the import. The default value is null.

Returns

The current object, to allow chaining.

Exceptions

propertyFilter is null.

Applies to