다음을 통해 공유


ModelExpressionProvider.CreateModelExpression 메서드

정의

오버로드

CreateModelExpression<TModel,TValue>(ViewDataDictionary<TModel>, Expression<Func<TModel,TValue>>)

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

CreateModelExpression<TModel>(ViewDataDictionary<TModel>, String)

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

CreateModelExpression<TModel,TValue>(ViewDataDictionary<TModel>, Expression<Func<TModel,TValue>>)

Source:
ModelExpressionProvider.cs
Source:
ModelExpressionProvider.cs
Source:
ModelExpressionProvider.cs

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

public:
generic <typename TModel, typename TValue>
 virtual 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
override this.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.

구현

적용 대상

CreateModelExpression<TModel>(ViewDataDictionary<TModel>, String)

Source:
ModelExpressionProvider.cs

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

public:
generic <typename TModel>
 Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExpression ^ CreateModelExpression(Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary<TModel> ^ viewData, System::String ^ expression);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression CreateModelExpression<TModel> (Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<TModel> viewData, string expression);
member this.CreateModelExpression : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<'Model> * string -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression
Public Function CreateModelExpression(Of TModel) (viewData As ViewDataDictionary(Of TModel), expression As String) As ModelExpression

형식 매개 변수

TModel

viewData형식입니다 Model.

매개 변수

viewData
ViewDataDictionary<TModel>

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

expression
String

식 이름을 기준으로 합니다 viewData.Model.

반환

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

적용 대상