Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the context information about the view.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public ViewContext ViewContext { get; private set; }
public:
property ViewContext^ ViewContext {
ViewContext^ get();
private: void set(ViewContext^ value);
}
member ViewContext : ViewContext with get, private set
Public Property ViewContext As ViewContext
Get
Private Set
End Property
Property Value
Type: System.Web.Mvc.ViewContext
The context of the view.
Remarks
The ViewContext instance that is returned by this property contains information that is related to rendering a view. This includes the view's ViewDataDictionary and TempDataDictionary objects.
See Also
HtmlHelper Class
System.Web.Mvc Namespace
Return to top