Share via


ControllerBase.ViewData Property

Gets or sets the dictionary for view data.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Property ViewData As ViewDataDictionary
    Get
    Set
public ViewDataDictionary ViewData { get; set; }
public:
property ViewDataDictionary^ ViewData {
    ViewDataDictionary^ get ();
    void set (ViewDataDictionary^ value);
}

Property Value

Type: System.Web.Mvc.ViewDataDictionary
The dictionary for the view data.

See Also

Reference

ControllerBase Class

System.Web.Mvc Namespace