ViewDataInfo Constructors

Definition

Overloads

ViewDataInfo(Object, Object)

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

ViewDataInfo(Object, PropertyInfo)

Initializes a new instance of the ViewDataInfo class with info about a ViewDataDictionary lookup which is evaluated when Value is read. It uses GetValue(Object) on propertyInfo passing parameter container to lazily evaluate the value.

ViewDataInfo(Object, PropertyInfo, Func<Object>)

Initializes a new instance of the ViewDataInfo class with info about a ViewDataDictionary lookup which is evaluated when Value is read. It uses valueAccessor to lazily evaluate the value.

ViewDataInfo(Object, Object)

Source:
ViewDataInfo.cs
Source:
ViewDataInfo.cs

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

public:
 ViewDataInfo(System::Object ^ container, System::Object ^ value);
public ViewDataInfo (object container, object value);
new Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo : obj * obj -> Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo
Public Sub New (container As Object, value As Object)

Parameters

container
Object

The Object that value was evaluated from.

value
Object

The evaluated value.

Applies to

ViewDataInfo(Object, PropertyInfo)

Source:
ViewDataInfo.cs
Source:
ViewDataInfo.cs

Initializes a new instance of the ViewDataInfo class with info about a ViewDataDictionary lookup which is evaluated when Value is read. It uses GetValue(Object) on propertyInfo passing parameter container to lazily evaluate the value.

public:
 ViewDataInfo(System::Object ^ container, System::Reflection::PropertyInfo ^ propertyInfo);
public ViewDataInfo (object container, System.Reflection.PropertyInfo propertyInfo);
new Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo : obj * System.Reflection.PropertyInfo -> Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo
Public Sub New (container As Object, propertyInfo As PropertyInfo)

Parameters

container
Object

The Object that Value will be evaluated from.

propertyInfo
PropertyInfo

The PropertyInfo that will be used to evaluate Value.

Applies to

ViewDataInfo(Object, PropertyInfo, Func<Object>)

Source:
ViewDataInfo.cs
Source:
ViewDataInfo.cs

Initializes a new instance of the ViewDataInfo class with info about a ViewDataDictionary lookup which is evaluated when Value is read. It uses valueAccessor to lazily evaluate the value.

public:
 ViewDataInfo(System::Object ^ container, System::Reflection::PropertyInfo ^ propertyInfo, Func<System::Object ^> ^ valueAccessor);
public ViewDataInfo (object container, System.Reflection.PropertyInfo propertyInfo, Func<object> valueAccessor);
new Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo : obj * System.Reflection.PropertyInfo * Func<obj> -> Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo
Public Sub New (container As Object, propertyInfo As PropertyInfo, valueAccessor As Func(Of Object))

Parameters

container
Object

The Object that has the Value.

propertyInfo
PropertyInfo

The PropertyInfo that represents Value's property.

valueAccessor
Func<Object>

A delegate that will return the Value.

Applies to