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)

Syntax

'Declaration
Public Property ViewContext As ViewContext
    Get
    Set
public ViewContext ViewContext { get; set; }
public:
property ViewContext^ ViewContext {
    ViewContext^ get ();
    void set (ViewContext^ value);
}

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.

See Also

Reference

ViewPage Class

System.Web.Mvc Namespace