Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

NameDescription
System_CAPS_protmethodViewResultBase()

Initializes a new instance of the ViewResultBase class.

NameDescription
System_CAPS_pubpropertyModel

Gets the view data model.

System_CAPS_pubpropertyTempData

Gets or sets the TempDataDictionary object for this result.

System_CAPS_pubpropertyView

Gets or sets the IView object that is rendered to the response.

System_CAPS_pubpropertyViewBag

Gets the view bag.

System_CAPS_pubpropertyViewData

Gets or sets the view data ViewDataDictionary object for this result.

System_CAPS_pubpropertyViewEngineCollection

Gets or sets the collection of view engines that are associated with this result.

System_CAPS_pubpropertyViewName

Gets or sets the name of the view to render.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecuteResult(ControllerContext)

When called by the action invoker, renders the view to the response.(Overrides ActionResult.ExecuteResult(ControllerContext).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_protmethodFindView(ControllerContext)

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

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(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.

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

Return to top
Show:
© 2015 Microsoft