PartialViewResult Class¶
Summary¶
Represents an [Microsoft.AspNet.Mvc.ActionResult]() that renders a partial view to the response.
Properties¶
-
ContentType
()¶ Gets or sets the @!:MediaTypeHeaderValue- representing the Content-Type header of the response.
Return type: MediaTypeHeaderValue public MediaTypeHeaderValue ContentType { get; set; }
-
StatusCode
()¶ Gets or sets the HTTP status code.
Return type: System.Nullable{System.Int32} public int ? StatusCode { get; set; }
-
TempData
()¶ Gets or sets the [Microsoft.AspNet.Mvc.ITempDataDictionary]() used for rendering the view for this result.
Return type: Microsoft.AspNet.Mvc.ITempDataDictionary public ITempDataDictionary TempData { get; set; }
-
ViewData
()¶ Gets or sets the [Microsoft.AspNet.Mvc.ViewDataDictionary](Microsoft.AspNet.Mvc.ViewDataDictionary.yml) used for rendering the view for this result.
Return type: Microsoft.AspNet.Mvc.ViewDataDictionary public ViewDataDictionary ViewData { get; set; }
-
ViewEngine
()¶ Gets or sets the [Microsoft.AspNet.Mvc.Rendering.IViewEngine](Microsoft.AspNet.Mvc.Rendering.IViewEngine.yml) used to locate views.
Return type: Microsoft.AspNet.Mvc.Rendering.IViewEngine public IViewEngine ViewEngine { get; set; }
-
ViewName
()¶ Gets or sets the name of the partial view to render.
Return type: System.String public string ViewName { get; set; }
-
Methods¶
-
ExecuteResultAsync
(Microsoft.AspNet.Mvc.ActionContext)¶ Arguments: - context (Microsoft.AspNet.Mvc.ActionContext) –
Return type: System.Threading.Tasks.Task
public override Task ExecuteResultAsync(ActionContext context)
-