Delen via


ViewDataDictionary.GetViewDataInfo(String) Method

Definition

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