Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ViewContext Property

ViewPage.ViewContext Property


Gets or sets the information that is used to render the view.

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

public ViewContext ViewContext { get; set; }

Property Value

Type: System.Web.Mvc.ViewContext

The information that is used to render the view, which includes the form context, the temporary data, and the view data of the associated view.

Return to top
© 2015 Microsoft