This topic has not yet been rated - Rate this topic

PartialViewResult Class

Represents a base class that is used to send a partial view to the response.

System.Object
  System.Web.Mvc.ActionResult
    System.Web.Mvc.ViewResultBase
      System.Web.Mvc.PartialViewResult

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public class PartialViewResult : ViewResultBase

The PartialViewResult type exposes the following members.

  Name Description
Public method PartialViewResult Initializes a new instance of the PartialViewResult class.
Top
  Name Description
Public property Model Gets the view data model. (Inherited from ViewResultBase.)
Public property TempData Gets or sets the TempDataDictionary object for this result. (Inherited from ViewResultBase.)
Public property View Gets or sets the IView object that is rendered to the response. (Inherited from ViewResultBase.)
Public property ViewBag Gets the view bag. (Inherited from ViewResultBase.)
Public property ViewData Gets or sets the view data ViewDataDictionary object for this result. (Inherited from ViewResultBase.)
Public property ViewEngineCollection Gets or sets the collection of view engines that are associated with this result. (Inherited from ViewResultBase.)
Public property ViewName Gets or sets the name of the view to render. (Inherited from ViewResultBase.)
Top
  Name Description
Public method Equals (Inherited from Object.)
Public method ExecuteResult When called by the action invoker, renders the view to the response. (Inherited from ViewResultBase.)
Protected method Finalize (Inherited from Object.)
Protected method FindView Returns the ViewEngineResult object that is used to render the view. (Overrides ViewResultBase.FindView(ControllerContext).)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Top

An action result represents a command that ASP.NET performs on behalf of an action method. The PartialViewResult class implements the abstract ViewResultBase class and is used to render a partial view. This class contains methods for finding the partial view to render and for executing the result. This class also contains properties that identify the partial view to render, the name of the partial view, view data, temporary data, and a collection of 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.
Did you find this helpful?
(1500 characters remaining)