ControllerBase.ViewBag Property

Definition

Gets the dynamic view data dictionary.

C#
public dynamic ViewBag { get; }

Property Value

The dynamic view data dictionary.

Applies to

Product Versions
ASP.NET MVC 5.2