This topic has not yet been rated - Rate this topic

ViewContext Members

.NET Framework 3.5

Encapsulates information that is related to rendering a view.

The ViewContext type exposes the following members.

  NameDescription
Public method ViewContext Overloaded. Initializes a new instance of the ViewContext class.
Top
  NameDescription
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)
Top
  NameDescription
Public property Controller Gets or sets the controller. (Inherited from ControllerContext.)
Public property HttpContext Gets or sets the HTTP context. (Inherited from ControllerContext.)
Public property RequestContext Gets or sets the request context. (Inherited from ControllerContext.)
Public property RouteData Gets or sets the URL route data. (Inherited from ControllerContext.)
Public property TempData Gets data that is associated with this request and that is available for only one request.
Public property View Gets an object that implements the IView interface to render in the browser.
Public property ViewData Gets the view data that is passed to the view.
Top
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ