HtmlHelper.ViewBag Property
Gets the view bag.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public object ViewBag { get; }
public:
property Object^ ViewBag {
Object^ get();
}
member ViewBag : Object with get
Public ReadOnly Property ViewBag As Object
Property Value
Type: System.Object
The view bag.
See Also
HtmlHelper Class
System.Web.Mvc Namespace
Return to top