PartConventionBuilder<T>::ImportProperty<TContract> Method (Expression<Func<T, Object^>^>^, Action<ImportConventionBuilder^>^)

.NET Framework (current version)
 

Imports a specified property with the specified contract type and configuration.

Namespace:   System.Composition.Convention
Assembly:  System.Composition.Convention (in System.Composition.Convention.dll)

public:
generic<typename TContract>
PartConventionBuilder<T>^ ImportProperty(
	Expression<Func<T, Object^>^>^ propertySelector,
	Action<ImportConventionBuilder^>^ importConfiguration
)

Parameters

propertySelector
Type: System.Linq.Expressions::Expression<Func<T, Object^>^>^

A function that selects the property to import.

importConfiguration
Type: System::Action<ImportConventionBuilder^>^

An action that configures the imported property.

Return Value

Type: System.Composition.Convention::PartConventionBuilder<T>^

An object that can be used to further configure the part.

Type Parameters

TContract

The contract type.

Return to top
Show: