ViewDataDictionary.GetViewDataInfo(String) Method
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.
Gets ViewDataInfo for named expression
in this
ViewDataDictionary.
public:
Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataInfo ^ GetViewDataInfo(System::String ^ expression);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo GetViewDataInfo (string expression);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo? GetViewDataInfo (string? expression);
member this.GetViewDataInfo : string -> Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo
Public Function GetViewDataInfo (expression As String) As ViewDataInfo
Parameters
- expression
- String
Expression name, relative to the current model.
Returns
ViewDataInfo for named expression
in this
ViewDataDictionary.
Remarks
Looks up expression
in the dictionary first. Falls back to evaluating it against Model.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for