Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ViewResultBase Class

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

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public abstract class ViewResultBase : ActionResult

The ViewResultBase type exposes the following members.

  NameDescription
Protected methodViewResultBaseInitializes a new instance of the ViewResultBase class.
Top

  NameDescription
Public propertyModelGets the view data model.
Public propertyTempDataGets or sets the TempDataDictionary object for this result.
Public propertyViewGets or sets the IView object that is rendered to the response.
Public propertyViewBagGets the view bag.
Public propertyViewDataGets or sets the view data ViewDataDictionary object for this result.
Public propertyViewEngineCollectionGets or sets the collection of view engines that are associated with this result.
Public propertyViewNameGets or sets the name of the view to render.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodExecuteResultWhen called by the action invoker, renders the view to the response. (Overrides ActionResult.ExecuteResult(ControllerContext).)
Protected methodFinalize (Inherited from Object.)
Protected methodFindViewReturns the ViewEngineResult object that is used to render the view.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft