Sdílet prostřednictvím


ModelMetadata.FromLambdaExpression<TParameter,TValue> Metoda

Definice

Vrátí metadata z parametru Expression modelu.

public static System.Web.Mvc.ModelMetadata FromLambdaExpression<TParameter,TValue> (System.Linq.Expressions.Expression<Func<TParameter,TValue>> expression, System.Web.Mvc.ViewDataDictionary<TParameter> viewData);
static member FromLambdaExpression : System.Linq.Expressions.Expression<Func<'Parameter, 'Value>> * System.Web.Mvc.ViewDataDictionary<'Parameter> -> System.Web.Mvc.ModelMetadata
Public Shared Function FromLambdaExpression(Of TParameter, TValue) (expression As Expression(Of Func(Of TParameter, TValue)), viewData As ViewDataDictionary(Of TParameter)) As ModelMetadata

Parametry typu

TParameter

Typ parametru

TValue

Typ hodnoty

Parametry

expression
Expression<Func<TParameter,TValue>>

Výraz, který identifikuje model.

viewData
ViewDataDictionary<TParameter>

Slovník dat zobrazení.

Návraty

Metadata.

Platí pro