PartConventionBuilder<T>.ImportProperty 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.
Overloads
ImportProperty(Expression<Func<T,Object>>) |
Imports a specified property. |
ImportProperty(Expression<Func<T,Object>>, Action<ImportConventionBuilder>) |
Imports a specified property by using the specified configuration. |
ImportProperty<TContract>(Expression<Func<T,Object>>) |
Imports a specified property with the specified contract type. |
ImportProperty<TContract>(Expression<Func<T,Object>>, Action<ImportConventionBuilder>) |
Imports a specified property with the specified contract type and configuration. |
ImportProperty(Expression<Func<T,Object>>)
- Source:
- PartConventionBuilderOfT.cs
- Source:
- PartConventionBuilderOfT.cs
Imports a specified property.
public:
System::Composition::Convention::PartConventionBuilder<T> ^ ImportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertySelector);
public System.Composition.Convention.PartConventionBuilder<T> ImportProperty (System.Linq.Expressions.Expression<Func<T,object>> propertySelector);
member this.ImportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function ImportProperty (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 import.
Returns
An object that can be used to further configure the part.
Applies to
ImportProperty(Expression<Func<T,Object>>, Action<ImportConventionBuilder>)
- Source:
- PartConventionBuilderOfT.cs
- Source:
- PartConventionBuilderOfT.cs
Imports a specified property by using the specified configuration.
public:
System::Composition::Convention::PartConventionBuilder<T> ^ ImportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertySelector, Action<System::Composition::Convention::ImportConventionBuilder ^> ^ importConfiguration);
public System.Composition.Convention.PartConventionBuilder<T> ImportProperty (System.Linq.Expressions.Expression<Func<T,object>> propertySelector, Action<System.Composition.Convention.ImportConventionBuilder> importConfiguration);
member this.ImportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> * Action<System.Composition.Convention.ImportConventionBuilder> -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function ImportProperty (propertySelector As Expression(Of Func(Of T, Object)), importConfiguration As Action(Of ImportConventionBuilder)) As PartConventionBuilder(Of T)
Parameters
- propertySelector
- Expression<Func<T,Object>>
A function that selects the property to import.
- importConfiguration
- Action<ImportConventionBuilder>
An action that configures the imported 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
ImportProperty<TContract>(Expression<Func<T,Object>>)
- Source:
- PartConventionBuilderOfT.cs
- Source:
- PartConventionBuilderOfT.cs
Imports a specified property with the specified contract type.
public:
generic <typename TContract>
System::Composition::Convention::PartConventionBuilder<T> ^ ImportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertySelector);
public System.Composition.Convention.PartConventionBuilder<T> ImportProperty<TContract> (System.Linq.Expressions.Expression<Func<T,object>> propertySelector);
member this.ImportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function ImportProperty(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 import.
Returns
An object that can be used to further configure the part.
Applies to
ImportProperty<TContract>(Expression<Func<T,Object>>, Action<ImportConventionBuilder>)
- Source:
- PartConventionBuilderOfT.cs
- Source:
- PartConventionBuilderOfT.cs
Imports a specified property with the specified contract type and configuration.
public:
generic <typename TContract>
System::Composition::Convention::PartConventionBuilder<T> ^ ImportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertySelector, Action<System::Composition::Convention::ImportConventionBuilder ^> ^ importConfiguration);
public System.Composition.Convention.PartConventionBuilder<T> ImportProperty<TContract> (System.Linq.Expressions.Expression<Func<T,object>> propertySelector, Action<System.Composition.Convention.ImportConventionBuilder> importConfiguration);
member this.ImportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> * Action<System.Composition.Convention.ImportConventionBuilder> -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function ImportProperty(Of TContract) (propertySelector As Expression(Of Func(Of T, Object)), importConfiguration As Action(Of ImportConventionBuilder)) As PartConventionBuilder(Of T)
Type Parameters
- TContract
The contract type.
Parameters
- propertySelector
- Expression<Func<T,Object>>
A function that selects the property to import.
- importConfiguration
- Action<ImportConventionBuilder>
An action that configures the imported 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.