WebViewPage<TModel>.ViewData Property
Gets or sets a dictionary that contains data to pass between the controller and the view.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Property ViewData As ViewDataDictionary(Of TModel)
'Usage
Dim instance As WebViewPage
Dim value As ViewDataDictionary(Of TModel)
value = instance.ViewData
instance.ViewData = value
public ViewDataDictionary<TModel> ViewData { get; set; }
public:
property ViewDataDictionary<TModel>^ ViewData {
ViewDataDictionary<TModel>^ get ();
void set (ViewDataDictionary<TModel>^ value);
}
function get ViewData () : ViewDataDictionary<TModel>
function set ViewData (value : ViewDataDictionary<TModel>)
Property Value
Type: System.Web.Mvc.ViewDataDictionary<TModel>
A dictionary that contains data to pass between the controller and the view.