ViewResultBase Class

Definition

Represents a base class that is used to provide the model to the view and then render the view to the response.

public abstract class ViewResultBase : System.Web.Mvc.ActionResult
type ViewResultBase = class
    inherit ActionResult
Public MustInherit Class ViewResultBase
Inherits ActionResult
Inheritance
ViewResultBase
Derived

Constructors

ViewResultBase()

Initializes a new instance of the ViewResultBase class.

Properties

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.

Methods

ExecuteResult(ControllerContext)

When called by the action invoker, renders the view to the response.

FindView(ControllerContext)

Returns the ViewEngineResult object that is used to render the view.

Applies to