MVC项目PartialViewResult,ActionResult,ViewResult类之间有什么区别? [英] MVC project what is the difference between PartialViewResult, ActionResult,ViewResult classes?

查看:114
本文介绍了MVC项目PartialViewResult,ActionResult,ViewResult类之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MVC项目

PartialViewResult

ActionResult

ViewResult

课程?

任何人都可以发布简短的简介链接吗?

can anyone post brief introduction link?

推荐答案

  • ActionResult -一个抽象类ASP.NET MVC应用程序中的所有操作都应返回的具体实例.
  • ViewResult -ActionResult的实现用于使用指定的视图引擎渲染视图
  • PartialViewResult -ActionResult的实现使用指定的视图引擎渲染局部视图(无布局)
    • ActionResult - an abstract class that all actions in an ASP.NET MVC application should return a concrete instance of.
    • ViewResult - an implementation of ActionResult that is used to render a view using the specified view engine
    • PartialViewResult - an implementation of ActionResult that is used to render a partial view (without a layout) using the specified view engine
    • 这篇关于MVC项目PartialViewResult,ActionResult,ViewResult类之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆