Share via


ControllerBase.ViewBag Property

Gets the dynamic view data dictionary.

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

Syntax

'Declaration
Public ReadOnly Property ViewBag As Object
'Usage
Dim instance As ControllerBase
Dim value As Object

value = instance.ViewBag
public Object ViewBag { get; }
public:
property Object^ ViewBag {
    Object^ get ();
}
function get ViewBag () : Object

Property Value

Type: System.Object
The dynamic view data dictionary.

See Also

Reference

ControllerBase Class

System.Web.Mvc Namespace