다음을 통해 공유


IModelExpressionProvider.CreateModelExpression<TModel,TValue> 메서드

정의

지정된 expressionModelExpression 설명하는 instance 반환합니다.

public:
generic <typename TModel, typename TValue>
 Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExpression ^ CreateModelExpression(Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary<TModel> ^ viewData, System::Linq::Expressions::Expression<Func<TModel, TValue> ^> ^ expression);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression CreateModelExpression<TModel,TValue> (Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<TModel> viewData, System.Linq.Expressions.Expression<Func<TModel,TValue>> expression);
abstract member CreateModelExpression : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Value>> -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression
Public Function CreateModelExpression(Of TModel, TValue) (viewData As ViewDataDictionary(Of TModel), expression As Expression(Of Func(Of TModel, TValue))) As ModelExpression

형식 매개 변수

TModel

viewData형식입니다 Model.

TValue

결과의 형식입니다 expression .

매개 변수

viewData
ViewDataDictionary<TModel>

ViewDataDictionary<TModel> 가 평가되는 expression 를 포함하는 Model 입니다.

expression
Expression<Func<TModel,TValue>>

현재 모델에 대해 평가할 식입니다.

반환

지정된 expression을 설명하는 새 ModelExpression instance.

적용 대상