Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PartConventionBuilder<T>::ExportProperty<TContract> Method (Expression<Func<T, Object^>^>^)

.NET Framework (current version)
 

Exports a specified property as a specified contract type.

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

public:
generic<typename TContract>
PartConventionBuilder<T>^ ExportProperty(
	Expression<Func<T, Object^>^>^ propertySelector
)

Parameters

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

A function that selects the property to export.

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:
© 2017 Microsoft