PartBuilder<T>.ExportProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies a property that should be exported.
Overloads
ExportProperty(Expression<Func<T,Object>>) |
Specifies a property that should be exported. |
ExportProperty(Expression<Func<T,Object>>, Action<ExportBuilder>) |
Specifies a property that should be exported, and provides configuration information for the resulting export. |
ExportProperty<TContract>(Expression<Func<T,Object>>) |
Specifies a property that should be exported as the specified contract type. |
ExportProperty<TContract>(Expression<Func<T,Object>>, Action<ExportBuilder>) |
Specifies a property that should be exported as the specified contract type, and provides configuration information for the resulting export. |
ExportProperty(Expression<Func<T,Object>>)
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
Specifies a property that should be exported.
public:
System::ComponentModel::Composition::Registration::PartBuilder<T> ^ ExportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertyFilter);
public System.ComponentModel.Composition.Registration.PartBuilder<T> ExportProperty (System.Linq.Expressions.Expression<Func<T,object>> propertyFilter);
member this.ExportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> -> System.ComponentModel.Composition.Registration.PartBuilder<'T>
Public Function ExportProperty (propertyFilter As Expression(Of Func(Of T, Object))) As PartBuilder(Of T)
Parameters
- propertyFilter
- Expression<Func<T,Object>>
An expression that results in a reference to the target property.
Returns
The current object, to allow chaining.
Exceptions
propertyFilter
is null
.
Applies to
ExportProperty(Expression<Func<T,Object>>, Action<ExportBuilder>)
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
Specifies a property that should be exported, and provides configuration information for the resulting export.
public:
System::ComponentModel::Composition::Registration::PartBuilder<T> ^ ExportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertyFilter, Action<System::ComponentModel::Composition::Registration::ExportBuilder ^> ^ exportConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder<T> ExportProperty (System.Linq.Expressions.Expression<Func<T,object>> propertyFilter, Action<System.ComponentModel.Composition.Registration.ExportBuilder> exportConfiguration);
member this.ExportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> * Action<System.ComponentModel.Composition.Registration.ExportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder<'T>
Public Function ExportProperty (propertyFilter As Expression(Of Func(Of T, Object)), exportConfiguration As Action(Of ExportBuilder)) As PartBuilder(Of T)
Parameters
- propertyFilter
- Expression<Func<T,Object>>
An expression that results in a reference to the target property.
- exportConfiguration
- Action<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
ExportProperty<TContract>(Expression<Func<T,Object>>)
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
Specifies a property that should be exported as the specified contract type.
public:
generic <typename TContract>
System::ComponentModel::Composition::Registration::PartBuilder<T> ^ ExportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertyFilter);
public System.ComponentModel.Composition.Registration.PartBuilder<T> ExportProperty<TContract> (System.Linq.Expressions.Expression<Func<T,object>> propertyFilter);
member this.ExportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> -> System.ComponentModel.Composition.Registration.PartBuilder<'T>
Public Function ExportProperty(Of TContract) (propertyFilter As Expression(Of Func(Of T, Object))) As PartBuilder(Of T)
Type Parameters
- TContract
The type of the contract.
Parameters
- propertyFilter
- Expression<Func<T,Object>>
An expression that results in a reference to the target property.
Returns
The current object, to allow chaining.
Exceptions
propertyFilter
is null
.
Applies to
ExportProperty<TContract>(Expression<Func<T,Object>>, Action<ExportBuilder>)
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
Specifies a property that should be exported as the specified contract type, and provides configuration information for the resulting export.
public:
generic <typename TContract>
System::ComponentModel::Composition::Registration::PartBuilder<T> ^ ExportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertyFilter, Action<System::ComponentModel::Composition::Registration::ExportBuilder ^> ^ exportConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder<T> ExportProperty<TContract> (System.Linq.Expressions.Expression<Func<T,object>> propertyFilter, Action<System.ComponentModel.Composition.Registration.ExportBuilder> exportConfiguration);
member this.ExportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> * Action<System.ComponentModel.Composition.Registration.ExportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder<'T>
Public Function ExportProperty(Of TContract) (propertyFilter As Expression(Of Func(Of T, Object)), exportConfiguration As Action(Of ExportBuilder)) As PartBuilder(Of T)
Type Parameters
- TContract
The type of the contract.
Parameters
- propertyFilter
- Expression<Func<T,Object>>
An expression that results in a reference to the target property.
- exportConfiguration
- Action<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
.