ViewDataEvaluator Class

Syntax

public class ViewDataEvaluator

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataEvaluator

Methods

Eval(Microsoft.AspNet.Mvc.ViewDataDictionary, System.String)

Gets [Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo](Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo.yml) for named <paramref name=”expression” /> in given

<paramref name=”viewData” />.

Arguments:
  • viewData (Microsoft.AspNet.Mvc.ViewDataDictionary) – The [Microsoft.AspNet.Mvc.ViewDataDictionary](Microsoft.AspNet.Mvc.ViewDataDictionary.yml) that may contain the <paramref name=”expression” /> value.
  • expression (System.String) – Expression name, relative to <c>viewData.Model</c>.
Return type:

Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo

Returns:

[Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo](Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo.yml) for named <paramref name=”expression” /> in given <paramref name=”viewData” />.

public static ViewDataInfo Eval(ViewDataDictionary viewData, string expression)
Eval(System.Object, System.String)

Gets [Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo](Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo.yml) for named <paramref name=”expression” /> in given

<paramref name=”indexableObject” />.

Arguments:
  • indexableObject (System.Object) – The [System.Object]() that may contain the <paramref name=”expression” /> value.
  • expression (System.String) – Expression name, relative to <paramref name=”indexableObject” />.
Return type:

Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo

Returns:

[Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo](Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo.yml) for named <paramref name=”expression” /> in given <paramref name=”indexableObject” />.

public static ViewDataInfo Eval(object indexableObject, string expression)