United States (English)
Sign in
Home
Library
Learn
Samples
Downloads
Support
Community
Forums
MSDN Library
Web Development
ASP.NET
ASP.NET MVC 4
ASP.NET MVC 4 Reference
System.Web.Mvc
ControllerBase Class
ControllerBase Properties
ControllerContext Property
TempData Property
ValidateRequest Property
ValueProvider Property
ViewBag Property
ViewData Property
0 out of 20 rated this helpful
-
Rate this topic
ControllerBase
.
ViewBag Property
Gets the dynamic view data dictionary.
Namespace:
System.Web.Mvc
Assembly:
System.Web.Mvc
(in System.Web.Mvc.dll)
Syntax
C#
C++
F#
JScript
VB
Copy
public
Object ViewBag {
get
; }
Property Value
Type:
System
.
Object
The dynamic view data dictionary.
See Also
Reference
ControllerBase Class
System.Web.Mvc Namespace
Did you find this helpful?
Yes
No
Not accurate
Not enough depth
Need more code examples
Tell us more...
(
1500
characters remaining)