HtmlHelper.ViewData Property
Gets the current view data dictionary.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public ViewDataDictionary ViewData { get; }
public:
property ViewDataDictionary^ ViewData {
ViewDataDictionary^ get();
}
member ViewData : ViewDataDictionary with get
Public ReadOnly Property ViewData As ViewDataDictionary
Property Value
Type: System.Web.Mvc.ViewDataDictionary
The view data dictionary.
Remarks
The ViewDataDictionary instance that is returned by this property contains the data that is required in order to render a view.
See Also
HtmlHelper Class
System.Web.Mvc Namespace
Return to top