ViewResult Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a class that is used to render a view by using an IView instance that is returned by an IViewEngine object.
public class ViewResult : System.Web.Mvc.ViewResultBase
type ViewResult = class
inherit ViewResultBase
Public Class ViewResult
Inherits ViewResultBase
- Inheritance
Constructors
ViewResult() |
Initializes a new instance of the ViewResult class. |
Properties
MasterName |
Gets the name of the master view (such as a master page or template) to use when the view is rendered. |
Model |
Gets the view data model. (Inherited from ViewResultBase) |
TempData |
Gets or sets the TempDataDictionary object for this result. (Inherited from ViewResultBase) |
View |
Gets or sets the IView object that is rendered to the response. (Inherited from ViewResultBase) |
ViewBag |
Gets the view bag. (Inherited from ViewResultBase) |
ViewData |
Gets or sets the view data ViewDataDictionary object for this result. (Inherited from ViewResultBase) |
ViewEngineCollection |
Gets or sets the collection of view engines that are associated with this result. (Inherited from ViewResultBase) |
ViewName |
Gets or sets the name of the view to render. (Inherited from ViewResultBase) |
Methods
ExecuteResult(ControllerContext) |
When called by the action invoker, renders the view to the response. (Inherited from ViewResultBase) |
FindView(ControllerContext) |
Searches the registered view engines and returns the object that is used to render the view. |