ModelExpressionProvider.GetExpressionText<TModel,TValue> Method

Definition

Gets the name for expression.

public:
generic <typename TModel, typename TValue>
 System::String ^ GetExpressionText(System::Linq::Expressions::Expression<Func<TModel, TValue> ^> ^ expression);
public string GetExpressionText<TModel,TValue> (System.Linq.Expressions.Expression<Func<TModel,TValue>> expression);
member this.GetExpressionText : System.Linq.Expressions.Expression<Func<'Model, 'Value>> -> string
Public Function GetExpressionText(Of TModel, TValue) (expression As Expression(Of Func(Of TModel, TValue))) As String

Type Parameters

TModel

The model type.

TValue

The type of the expression result.

Parameters

expression
Expression<Func<TModel,TValue>>

The expression.

Returns

The expression name.

Applies to