ViewDataInfo Class

Syntax

public class ViewDataInfo

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo

Constructors

ViewDataInfo(System.Object, System.Object)

Initializes a new instance of the [Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo](Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo.yml) class with info about a [Microsoft.AspNet.Mvc.ViewDataDictionary](Microsoft.AspNet.Mvc.ViewDataDictionary.yml) lookup which has already been evaluated.

Arguments:
  • container (System.Object) –
  • value (System.Object) –
public ViewDataInfo(object container, object value)
ViewDataInfo(System.Object, System.Reflection.PropertyInfo, System.Func<System.Object>)

Initializes a new instance of the [Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo](Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo.yml) class with info about a [Microsoft.AspNet.Mvc.ViewDataDictionary](Microsoft.AspNet.Mvc.ViewDataDictionary.yml) lookup which is evaluated when [Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo.Value](Microsoft.AspNet.Mvc.Rendering.Expressions.ViewDataInfo.yml) is read.

Arguments:
  • container (System.Object) –
  • propertyInfo (System.Reflection.PropertyInfo) –
  • valueAccessor (System.Func{System.Object}) –
public ViewDataInfo(object container, PropertyInfo propertyInfo, Func<object> valueAccessor)

Properties

Container()
Return type:System.Object
public object Container { get; }
PropertyInfo()
Return type:System.Reflection.PropertyInfo
public PropertyInfo PropertyInfo { get; }
Value()
Return type:System.Object
public object Value { get; set; }