ViewDataInfo Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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 |
ViewDataInfo(Object, Object)
- Source:
- ViewDataInfo.cs
- 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
- value
- Object
The evaluated value.
Applies to
ViewDataInfo(Object, PropertyInfo)
- Source:
- ViewDataInfo.cs
- 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
- propertyInfo
- PropertyInfo
The PropertyInfo that will be used to evaluate Value.
Applies to
ViewDataInfo(Object, PropertyInfo, Func<Object>)
- Source:
- ViewDataInfo.cs
- 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
- propertyInfo
- PropertyInfo
The PropertyInfo that represents Value's property.