Asp.net MVC 4 动作方法结果

简介: Action Method Result动作方法结果 ActionResult generic return value for an action and is used to perform a framework-level operation on behalf of the action method. 通用的返回值的一个动作,是用来代表的动作方法执行框架级操作。

Action Method Result动作方法结果

ActionResult

generic return value for an action and is used to perform a framework-level operation on behalf of the action method.

通用的返回值的一个动作,是用来代表的动作方法执行框架级操作。

ContentResult

To return a user-defined content type that is the result of an action method.

要返回用户定义的内容类型的操作方法是这样的结果。

EmptyResult

To return nothing from a Controller action

从控制器动作返回空

FileContentResult

Sends the contents of a binary file to the response.

一个二进制文件中的内容发送到响应中。

FilePathResult

Sends the contents of a file to the response.

一个文件中的内容发送到响应中。

FileResult

To return the content of a file to the browser

要返回的内容的一个文件浏览器

FileStreamResult

Sends binary content to the response by using a Stream instance.

二进制内容发送到响应通过使用流实例。

HttpNotFoundResult

To return 404 status-code to indicate that the requested resource was not found.

要返回404状态代码表示请求的资源没有被发现。

HttpStatusCodeResult

To return specific HTTP response status code and description.

若要返回特定HTTP响应状态代码和说明。

HttpUnauthorizedResult

To return 401 status code to indicate unauthorized HTTP request.

要返回401状态代码表示授权的HTTP请求。

JsonResult

To return a serialized JSON object.

要返回一个序列化的JSON对象。

JavaScriptResult

To return a script that can be executed on the client.

返回一个脚本,可以在客户端上执行。

PartialViewResult

To render a partial view (fx. just a user control)

若要呈现局部的视图(只是一个用户控制)

RedirectResult

To redirect to a specified URI.

要重定向到指定的URI。

RedirectToRouteResult

to redirect to a route

重定向路由

ValueProviderResult

Represents the result of binding a value (such as from a form post or query string) to an action-method argument property, or to the argument itself.

代表绑定到一个动作方法的参数属性(如从表单Post或查询字符串),或者参数本身的结果。

ViewEngineResult

Represents the result of locating a view engine.

代表定位视图引擎的结果。

ViewResult

To Render a view as a Web page.

要为网页渲染视图。

目录
相关文章
|
11月前
|
API C++ Windows
Visual C++运行库、.NET Framework和DirectX运行库的作用及常见问题解决方案,涵盖MSVCP140.dll丢失、0xc000007b错误等典型故障的修复方法
本文介绍Visual C++运行库、.NET Framework和DirectX运行库的作用及常见问题解决方案,涵盖MSVCP140.dll丢失、0xc000007b错误等典型故障的修复方法,提供官方下载链接与系统修复工具使用指南。
2217 2
|
SQL 缓存 开发框架
分享一个 .NET EF6 应用二级缓存提高性能的方法
分享一个 .NET EF6 应用二级缓存提高性能的方法
321 0
|
监控 前端开发 API
一款基于 .NET MVC 框架开发、功能全面的MES系统
一款基于 .NET MVC 框架开发、功能全面的MES系统
894 5
|
开发框架 前端开发 JavaScript
ASP.NET MVC 教程
ASP.NET 是一个使用 HTML、CSS、JavaScript 和服务器脚本创建网页和网站的开发框架。
535 7
|
存储 开发框架 前端开发
ASP.NET MVC 迅速集成 SignalR
ASP.NET MVC 迅速集成 SignalR
435 0
|
开发框架 前端开发 .NET
ASP.NET MVC WebApi 接口返回 JOSN 日期格式化 date format
ASP.NET MVC WebApi 接口返回 JOSN 日期格式化 date format
472 0
|
程序员 数据库
分享 2 个 .NET EF 6 只更新某些字段的方法
分享 2 个 .NET EF 6 只更新某些字段的方法
519 0
|
数据库
分享一个 .NET EF 6 扩展 Where 的方法
分享一个 .NET EF 6 扩展 Where 的方法
289 0
|
开发框架 前端开发 算法
分享 .NET EF6 查询并返回树形结构数据的 2 个思路和具体实现方法
分享 .NET EF6 查询并返回树形结构数据的 2 个思路和具体实现方法
412 0
|
前端开发 数据安全/隐私保护
net MVC中的模型绑定、验证以及ModelState
net MVC中的模型绑定、验证以及ModelState 模型绑定 模型绑定应该很容易理解,就是传递过来的数据,创建对应的model并把数据赋予model的属性,这样model的字段就有值了。
1985 0