码迷,mamicode.com
首页 > 其他好文 > 详细

ActionResult

时间:2014-08-07 12:03:09      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:http   java   io   strong   for   art   ar   cti   

ActionResult is an abstract class that can have several subtypes.

ActionResult Subtypes

  • ViewResult - Renders a specifed view to the response stream

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

  • EmptyResult - An empty response is returned

  • RedirectResult - Performs an HTTP redirection to a specifed URL

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

  • JsonResult - Serializes a given ViewData object to JSON format

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

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

  • FileContentResult - Returns a file to the client

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

  • FilePathResult - Returns a file to the client

Resources

ActionResult,布布扣,bubuko.com

ActionResult

标签:http   java   io   strong   for   art   ar   cti   

原文地址:http://www.cnblogs.com/Linford-Xu/p/3896361.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!