PartBuilder<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.
Specifies that a property should be imported.
Overloads
ImportProperty(Expression<Func<T,Object>>) |
Specifies that a property should be imported. |
ImportProperty(Expression<Func<T,Object>>, Action<ImportBuilder>) |
Specifies that a property should be imported, and provides configuration information for the resulting import. |
ImportProperty<TContract>(Expression<Func<T,Object>>) |
Specifies that a property should be imported using the specified contract name. |
ImportProperty<TContract>(Expression<Func<T,Object>>, Action<ImportBuilder>) |
Specifies that a property should be imported using the specified contract name, and provides configuration information for the resulting import. |
ImportProperty(Expression<Func<T,Object>>)
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
Specifies that a property should be imported.
public:
System::ComponentModel::Composition::Registration::PartBuilder<T> ^ ImportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertyFilter);
public System.ComponentModel.Composition.Registration.PartBuilder<T> ImportProperty (System.Linq.Expressions.Expression<Func<T,object>> propertyFilter);
member this.ImportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> -> System.ComponentModel.Composition.Registration.PartBuilder<'T>
Public Function ImportProperty (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
ImportProperty(Expression<Func<T,Object>>, Action<ImportBuilder>)
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
Specifies that a property should be imported, and provides configuration information for the resulting import.
public:
System::ComponentModel::Composition::Registration::PartBuilder<T> ^ ImportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertyFilter, Action<System::ComponentModel::Composition::Registration::ImportBuilder ^> ^ importConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder<T> ImportProperty (System.Linq.Expressions.Expression<Func<T,object>> propertyFilter, Action<System.ComponentModel.Composition.Registration.ImportBuilder> importConfiguration);
member this.ImportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> * Action<System.ComponentModel.Composition.Registration.ImportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder<'T>
Public Function ImportProperty (propertyFilter As Expression(Of Func(Of T, Object)), importConfiguration As Action(Of ImportBuilder)) As PartBuilder(Of T)
Parameters
- propertyFilter
- Expression<Func<T,Object>>
An expression that results in a reference to the target property.
- importConfiguration
- Action<ImportBuilder>
An object that contains configuration information about the import. The default value is null
.
Returns
The current object, to allow chaining.
Exceptions
propertyFilter
is null
.
Applies to
ImportProperty<TContract>(Expression<Func<T,Object>>)
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
Specifies that a property should be imported using the specified contract name.
public:
generic <typename TContract>
System::ComponentModel::Composition::Registration::PartBuilder<T> ^ ImportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertyFilter);
public System.ComponentModel.Composition.Registration.PartBuilder<T> ImportProperty<TContract> (System.Linq.Expressions.Expression<Func<T,object>> propertyFilter);
member this.ImportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> -> System.ComponentModel.Composition.Registration.PartBuilder<'T>
Public Function ImportProperty(Of TContract) (propertyFilter As Expression(Of Func(Of T, Object))) As PartBuilder(Of T)
Type Parameters
- TContract
The contract type to use.
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
ImportProperty<TContract>(Expression<Func<T,Object>>, Action<ImportBuilder>)
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
- Source:
- PartBuilderOfT.cs
Specifies that a property should be imported using the specified contract name, and provides configuration information for the resulting import.
public:
generic <typename TContract>
System::ComponentModel::Composition::Registration::PartBuilder<T> ^ ImportProperty(System::Linq::Expressions::Expression<Func<T, System::Object ^> ^> ^ propertyFilter, Action<System::ComponentModel::Composition::Registration::ImportBuilder ^> ^ importConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder<T> ImportProperty<TContract> (System.Linq.Expressions.Expression<Func<T,object>> propertyFilter, Action<System.ComponentModel.Composition.Registration.ImportBuilder> importConfiguration);
member this.ImportProperty : System.Linq.Expressions.Expression<Func<'T, obj>> * Action<System.ComponentModel.Composition.Registration.ImportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder<'T>
Public Function ImportProperty(Of TContract) (propertyFilter As Expression(Of Func(Of T, Object)), importConfiguration As Action(Of ImportBuilder)) As PartBuilder(Of T)
Type Parameters
- TContract
The contract name to use.
Parameters
- propertyFilter
- Expression<Func<T,Object>>
An expression that results in a reference to the target property.
- importConfiguration
- Action<ImportBuilder>
An object that contains configuration information about the import. The default value is null
.
Returns
The current object, to allow chaining.
Exceptions
propertyFilter
is null
.