ActionResult

ActionResult is an abstract class that can have several subtypes.asp.net

ActionResult Subtypes

  • ViewResult - Renders a specifed view to the response streamide

  • PartialViewResult - Renders a specifed partial view to the response streamui

  • EmptyResult - An empty response is returned.net

  • RedirectResult - Performs an HTTP redirection to a specifed URLcode

  • RedirectToRouteResult - Performs an HTTP redirection to a URL that is determined by the routing engine, based on given route dataorm

  • JsonResult - Serializes a given ViewData object to JSON formatip

  • JavaScriptResult - Returns a piece of JavaScript code that can be executed on the clientci

  • ContentResult - Writes content to the response stream without requiring a viewget

  • FileContentResult - Returns a file to the clientit

  • FileStreamResult - Returns a file to the client, which is provided by a Stream

  • FilePathResult - Returns a file to the client

Resources

相關文章
相關標籤/搜索