編輯

共用方式為


PartBuilder.ExportProperties Method

Definition

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

Overloads

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

Specifies a set of properties on the matching types that should be exported, and provides configuration information for those exports.

ExportProperties(Predicate<PropertyInfo>)

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

ExportProperties<T>(Predicate<PropertyInfo>)

Specifies a set of properties on the matching types that should be exported, by using the specified contract type.

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

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

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

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

Specifies a set of properties on the matching types that should be exported, and provides configuration information for those exports.

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

Parameters

propertyFilter
Predicate<PropertyInfo>

A predicate that specifies a set of properties.

exportConfiguration
Action<PropertyInfo,ExportBuilder>

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

Returns

The current object, to allow chaining.

Exceptions

propertyFilter is null.

Applies to

ExportProperties(Predicate<PropertyInfo>)

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

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

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

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

ExportProperties<T>(Predicate<PropertyInfo>)

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

Specifies a set of properties on the matching types that should be exported, by using the specified contract type.

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

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

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

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

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

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

Type Parameters

T

The type of contract.

Parameters

propertyFilter
Predicate<PropertyInfo>

A predicate that specifies a set of properties.

exportConfiguration
Action<PropertyInfo,ExportBuilder>

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

Returns

The current object, to allow chaining.

Exceptions

propertyFilter is null.

Applies to