ViewResultBase Class
Represents a base class that is used to provide the model to the view and then render the view to the response.
System.Object
System.Web.Mvc.ActionResult
System.Web.Mvc.ViewResultBase
System.Web.Mvc.PartialViewResult
System.Web.Mvc.ViewResult
System.Web.Mvc.ActionResult
System.Web.Mvc.ViewResultBase
System.Web.Mvc.PartialViewResult
System.Web.Mvc.ViewResult
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
The ViewResultBase type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Model | Gets the view data model. |
![]() | TempData | Gets or sets the TempDataDictionary object for this result. |
![]() | View | Gets or sets the IView object that is rendered to the response. |
![]() | ViewBag | Gets the view bag. |
![]() | ViewData | Gets or sets the view data ViewDataDictionary object for this result. |
![]() | ViewEngineCollection | Gets or sets the collection of view engines that are associated with this result. |
![]() | ViewName | Gets or sets the name of the view to render. |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | ExecuteResult | When called by the action invoker, renders the view to the response. (Overrides ActionResult.ExecuteResult(ControllerContext).) |
![]() | Finalize | (Inherited from Object.) |
![]() | FindView | Returns the ViewEngineResult object that is used to render the view. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
The ViewResultBase class is the abstract base class for both the ViewResult and PartialViewResult classes. The class contains methods for finding the view to be rendered and for executing the result. This class also contains properties that identify the view to be rendered, the name of the view, view data, temporary data, and a collection for view engines for the application.
Show:
.gif?cs-save-lang=1&cs-lang=vb)
.gif?cs-save-lang=1&cs-lang=vb)
.gif?cs-save-lang=1&cs-lang=vb)