PartConventionBuilder<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.
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
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示