ViewDataInfo Class

Namespace
Microsoft.AspNetCore.Mvc.ViewFeatures
Assemblies
  • Microsoft.AspNetCore.Mvc.ViewFeatures

Syntax

public class ViewDataInfo
class Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo

Constructors

ViewDataInfo(System.Object, System.Object)

Initializes a new instance of the Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo class with info about a Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary lookup which has already been evaluated.

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

Initializes a new instance of the Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo class with info about a Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary lookup which is evaluated when Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo.Value is read.

public ViewDataInfo(object container, PropertyInfo propertyInfo, Func<object> valueAccessor)

Properties

Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo.Container
Return type:System.Object
public object Container { get; }
Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo.PropertyInfo
Return type:System.Reflection.PropertyInfo
public PropertyInfo PropertyInfo { get; }
Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo.Value
Return type:System.Object
public object Value { get; set; }