PartConventionBuilder<T>.ExportProperty Method

Definition

Overloads

ExportProperty(Expression<Func<T,Object>>)

Exports a specified property.

ExportProperty(Expression<Func<T,Object>>, Action<ExportConventionBuilder>)

Exports a specified property with the specified configuration.

ExportProperty<TContract>(Expression<Func<T,Object>>)

Exports a specified property as a specified contract type.

ExportProperty<TContract>(Expression<Func<T,Object>>, Action<ExportConventionBuilder>)

Exports a specified property as a specified contract type by using the specified configuration.

ExportProperty(Expression<Func<T,Object>>)

Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs

Exports a specified property.

public:
 System::Composition::Convention::PartConventionBuilder<T> ^ ExportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertySelector);
public System.Composition.Convention.PartConventionBuilder<T> ExportProperty (System.Linq.Expressions.Expression<Func<T,object>> propertySelector);
member this.ExportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function ExportProperty (propertySelector As Expression(Of Func(Of T, Object))) As PartConventionBuilder(Of T)

Parameters

propertySelector
Expression<Func<T,Object>>

A function that selects the property to export.

Returns

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

Applies to

ExportProperty(Expression<Func<T,Object>>, Action<ExportConventionBuilder>)

Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs

Exports a specified property with the specified configuration.

public:
 System::Composition::Convention::PartConventionBuilder<T> ^ ExportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertySelector, Action<System::Composition::Convention::ExportConventionBuilder ^> ^ exportConfiguration);
public System.Composition.Convention.PartConventionBuilder<T> ExportProperty (System.Linq.Expressions.Expression<Func<T,object>> propertySelector, Action<System.Composition.Convention.ExportConventionBuilder> exportConfiguration);
member this.ExportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> * Action<System.Composition.Convention.ExportConventionBuilder> -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function ExportProperty (propertySelector As Expression(Of Func(Of T, Object)), exportConfiguration As Action(Of ExportConventionBuilder)) As PartConventionBuilder(Of T)

Parameters

propertySelector
Expression<Func<T,Object>>

A function that selects the property to export.

exportConfiguration
Action<ExportConventionBuilder>

An action that configures the exported property.

Returns

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

Exceptions

The propertySelector expression must be a MemberExpression for accessing a property.

Applies to

ExportProperty<TContract>(Expression<Func<T,Object>>)

Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs

Exports a specified property as a specified contract type.

public:
generic <typename TContract>
 System::Composition::Convention::PartConventionBuilder<T> ^ ExportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertySelector);
public System.Composition.Convention.PartConventionBuilder<T> ExportProperty<TContract> (System.Linq.Expressions.Expression<Func<T,object>> propertySelector);
member this.ExportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function ExportProperty(Of TContract) (propertySelector As Expression(Of Func(Of T, Object))) As PartConventionBuilder(Of T)

Type Parameters

TContract

The contract type.

Parameters

propertySelector
Expression<Func<T,Object>>

A function that selects the property to export.

Returns

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

Exceptions

The propertySelector expression must be a MemberExpression for accessing a property.

Applies to

ExportProperty<TContract>(Expression<Func<T,Object>>, Action<ExportConventionBuilder>)

Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs
Source:
PartConventionBuilderOfT.cs

Exports a specified property as a specified contract type by using the specified configuration.

public:
generic <typename TContract>
 System::Composition::Convention::PartConventionBuilder<T> ^ ExportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertySelector, Action<System::Composition::Convention::ExportConventionBuilder ^> ^ exportConfiguration);
public System.Composition.Convention.PartConventionBuilder<T> ExportProperty<TContract> (System.Linq.Expressions.Expression<Func<T,object>> propertySelector, Action<System.Composition.Convention.ExportConventionBuilder> exportConfiguration);
member this.ExportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> * Action<System.Composition.Convention.ExportConventionBuilder> -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function ExportProperty(Of TContract) (propertySelector As Expression(Of Func(Of T, Object)), exportConfiguration As Action(Of ExportConventionBuilder)) As PartConventionBuilder(Of T)

Type Parameters

TContract

The contract type.

Parameters

propertySelector
Expression<Func<T,Object>>

A function that selects the property to export.

exportConfiguration
Action<ExportConventionBuilder>

An action that configures the exported property.

Returns

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

Applies to