Share via


AsyncController 类

定义

提供与 ASP.NET MVC 3 的向后兼容性。

public abstract class AsyncController : System.Web.Mvc.Controller
type AsyncController = class
    inherit Controller
Public MustInherit Class AsyncController
Inherits Controller
继承
AsyncController

构造函数

AsyncController()

初始化 AsyncController 类的新实例。

属性

ActionInvoker

获取控制器的操作调用程序。

(继承自 Controller)
AsyncManager

提供异步操作。

(继承自 Controller)
Binders

获取或设置联编程序。

(继承自 Controller)
ControllerContext

获取或设置控制器上下文。

(继承自 ControllerBase)
DisableAsyncSupport

获取是否禁用控制器的异步支持。

(继承自 Controller)
HttpContext

获取有关单个 HTTP 请求的 HTTP 特定的信息。

(继承自 Controller)
ModelState

获取包含模型状态和模型绑定验证状态的模型状态字典对象。

(继承自 Controller)
Profile

获取 HTTP 上下文配置文件。

(继承自 Controller)
Request

为当前 HTTP 请求获取 HttpRequestBase 对象。

(继承自 Controller)
Resolver

表示提供服务的可替换依赖关系解析程序。 默认情况下,它使用 System.Web.Mvc.DependencyResolver.CurrentCache

(继承自 Controller)
Response

为当前 HTTP 响应获取 HttpResponseBase 对象。

(继承自 Controller)
RouteData

为当前请求获取路由数据。

(继承自 Controller)
Server

获取提供 Web 请求处理期间使用的方法的 HttpServerUtilityBase 对象。

(继承自 Controller)
Session

为当前 HTTP 请求获取 HttpSessionStateBase 对象。

(继承自 Controller)
TempData

获取或设置临时数据的字典。

(继承自 ControllerBase)
TempDataProvider

获取用于为下一个请求存储数据的临时数据提供程序对象。

(继承自 Controller)
Url

获取用于使用路由来生成 URL 的 URL 帮助器对象。

(继承自 Controller)
User

为当前 HTTP 请求获取用户安全信息。

(继承自 Controller)
ValidateRequest

获取或设置一个值,该值指示是否为此请求启用请求验证。

(继承自 ControllerBase)
ValueProvider

获取或设置控制器的值提供程序。

(继承自 ControllerBase)
ViewBag

获取动态视图数据字典。

(继承自 ControllerBase)
ViewData

获取或设置视图数据的字典。

(继承自 ControllerBase)
ViewEngineCollection

获取视图引擎集合。

(继承自 Controller)

方法

BeginExecute(RequestContext, AsyncCallback, Object)

开始执行指定的请求上下文

(继承自 Controller)
BeginExecuteCore(AsyncCallback, Object)

开始调用当前控制器上下文中的操作。

(继承自 Controller)
Content(String)

使用字符串创建一个内容结果对象。

(继承自 Controller)
Content(String, String)

使用字符串和内容类型创建一个内容结果对象。

(继承自 Controller)
Content(String, String, Encoding)

使用字符串、内容类型和内容编码创建一个内容结果对象。

(继承自 Controller)
CreateActionInvoker()

创建操作调用程序。

(继承自 Controller)
CreateTempDataProvider()

创建临时数据提供程序。

(继承自 Controller)
Dispose()

释放由 Controller 类的当前实例占用的所有资源。

(继承自 Controller)
Dispose(Boolean)

释放非托管资源和托管资源(后者为可选项)。

(继承自 Controller)
EndExecute(IAsyncResult)

结束当前控制器上下文中的操作的调用。

(继承自 Controller)
EndExecuteCore(IAsyncResult)

结束执行核心。

(继承自 Controller)
Execute(RequestContext)

执行指定的请求上下文。

(继承自 ControllerBase)
ExecuteCore()

调用当前控制器上下文中的操作。

(继承自 Controller)
File(Byte[], String)

使用文件内容和文件类型创建一个 FileContentResult 对象。

(继承自 Controller)
File(Byte[], String, String)

使用文件内容、内容类型和目标文件名创建一个 FileContentResult 对象。

(继承自 Controller)
File(Stream, String)

使用 Stream 对象和内容类型创建一个 FileStreamResult 对象。

(继承自 Controller)
File(Stream, String, String)

使用 Stream 对象、内容类型和目标文件名创建一个 FileStreamResult 对象。

(继承自 Controller)
File(String, String)

使用文件名和内容类型创建一个 FilePathResult 对象。

(继承自 Controller)
File(String, String, String)

使用文件名、内容类型和文件下载名创建一个 FilePathResult 对象。

(继承自 Controller)
HandleUnknownAction(String)

当请求与此控制器匹配但在此控制器中找不到任何具有指定操作名称的方法时调用。

(继承自 Controller)
HttpNotFound()

返回 HttpNotFoundResult 类的实例。

(继承自 Controller)
HttpNotFound(String)

返回 HttpNotFoundResult 类的实例。

(继承自 Controller)
Initialize(RequestContext)

初始化调用构造函数后可能不可用的数据。

(继承自 Controller)
JavaScript(String)

创建一个 JavaScriptResult 对象。

(继承自 Controller)
Json(Object)

创建一个 JsonResult 对象,该对象将指定对象序列化为 JavaScript 对象表示法 (JSON) 。

(继承自 Controller)
Json(Object, JsonRequestBehavior)

创建 JsonResult 对象,该对象使用指定 JSON 请求行为将指定对象序列化为 JavaScript 对象表示法 (JSON) 格式。

(继承自 Controller)
Json(Object, String)

创建一个 JsonResult 对象,该对象将指定对象序列化为 javaScript 对象表示法 (JSON) 格式。

(继承自 Controller)
Json(Object, String, Encoding)

创建一个 JsonResult 对象,该对象将指定对象序列化为 javaScript 对象表示法 (JSON) 格式。

(继承自 Controller)
Json(Object, String, Encoding, JsonRequestBehavior)

创建一个 JsonResult 对象,该对象使用内容类型、内容编码和 JSON 请求行为将指定对象序列化为 JavaScript 对象表示法 (JSON) 格式。

(继承自 Controller)
Json(Object, String, JsonRequestBehavior)

创建一个 JsonResult 对象,该对象使用指定的内容类型和 JSON 请求行为将指定对象序列化为 JavaScript 对象表示法 (JSON) 格式。

(继承自 Controller)
OnActionExecuted(ActionExecutedContext)

在调用操作方法后调用。

(继承自 Controller)
OnActionExecuting(ActionExecutingContext)

在调用操作方法前调用。

(继承自 Controller)
OnAuthentication(AuthenticationContext)

在进行授权时调用。

(继承自 Controller)
OnAuthenticationChallenge(AuthenticationChallengeContext)

在进行授权质询时调用。

(继承自 Controller)
OnAuthorization(AuthorizationContext)

在进行授权时调用。

(继承自 Controller)
OnException(ExceptionContext)

当操作中发生未经处理的异常时调用。

(继承自 Controller)
OnResultExecuted(ResultExecutedContext)

在执行由操作方法返回的操作结果后调用。

(继承自 Controller)
OnResultExecuting(ResultExecutingContext)

在执行由操作方法返回的操作结果前调用。

(继承自 Controller)
PartialView()

创建呈现 PartialViewResult 分部视图的 对象。

(继承自 Controller)
PartialView(Object)

PartialViewResult使用指定的模型创建呈现分部视图的 对象。

(继承自 Controller)
PartialView(String)

PartialViewResult使用指定的视图名称创建呈现分部视图的 对象。

(继承自 Controller)
PartialView(String, Object)

PartialViewResult使用指定的视图名称和模型创建呈现分部视图的 对象。

(继承自 Controller)
Redirect(String)

创建重定向 RedirectResult 到指定 URL 的 对象。

(继承自 Controller)
RedirectPermanent(String)

返回 将 Permanent 属性设置为 true 的 RedirectResult 类的实例。

(继承自 Controller)
RedirectToAction(String)

使用操作名称重定向到指定的操作。

(继承自 Controller)
RedirectToAction(String, Object)

使用操作名称和路由值重定向到指定的操作。

(继承自 Controller)
RedirectToAction(String, RouteValueDictionary)

使用操作名称和路由字典重定向到指定的操作。

(继承自 Controller)
RedirectToAction(String, String)

使用操作名称和控制器名称重定向到指定的操作。

(继承自 Controller)
RedirectToAction(String, String, Object)

使用操作名称、控制器名称和路由字典重定向到指定的操作。

(继承自 Controller)
RedirectToAction(String, String, RouteValueDictionary)

使用操作名称、控制器名称和路由值重定向到指定的操作。

(继承自 Controller)
RedirectToActionPermanent(String)

返回 类的一个实例, RedirectResult 该实例使用指定的操作名称将 Permanent 属性设置为 true。

(继承自 Controller)
RedirectToActionPermanent(String, Object)

返回 类的一个实例, RedirectResult 该实例使用指定的操作名称和路由值将 Permanent 属性设置为 true。

(继承自 Controller)
RedirectToActionPermanent(String, RouteValueDictionary)

返回 类的一个实例, RedirectResult 该实例使用指定的操作名称和路由值将 Permanent 属性设置为 true。

(继承自 Controller)
RedirectToActionPermanent(String, String)

返回 类的一个实例, RedirectResult 该实例使用指定的操作名称和控制器名称将 Permanent 属性设置为 true。

(继承自 Controller)
RedirectToActionPermanent(String, String, Object)

返回 类的一个实例, RedirectResult 该实例使用指定的操作名称、控制器名称和路由值将 Permanent 属性设置为 true。

(继承自 Controller)
RedirectToActionPermanent(String, String, RouteValueDictionary)

返回 类的一个实例, RedirectResult 该实例使用指定的操作名称、控制器名称和路由值将 Permanent 属性设置为 true。

(继承自 Controller)
RedirectToRoute(Object)

使用指定的路由值重定向到指定的路由。

(继承自 Controller)
RedirectToRoute(RouteValueDictionary)

使用路由字典重定向到指定的路由。

(继承自 Controller)
RedirectToRoute(String)

使用路由名称重定向到指定的路由。

(继承自 Controller)
RedirectToRoute(String, Object)

使用路由名称和路由值重定向到指定的路由。

(继承自 Controller)
RedirectToRoute(String, RouteValueDictionary)

使用路由名称和路由字典重定向到指定的路由。

(继承自 Controller)
RedirectToRoutePermanent(Object)

返回使用指定的路由值并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。

(继承自 Controller)
RedirectToRoutePermanent(RouteValueDictionary)

返回使用指定的路由值并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。

(继承自 Controller)
RedirectToRoutePermanent(String)

返回使用指定的路由名称并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。

(继承自 Controller)
RedirectToRoutePermanent(String, Object)

返回使用指定的路由名称和路由值并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。

(继承自 Controller)
RedirectToRoutePermanent(String, RouteValueDictionary)

返回使用指定的路由名称和路由值并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。

(继承自 Controller)
TryUpdateModel<TModel>(TModel)

使用来自控制器的当前值提供程序的值更新指定的模型实例。

(继承自 Controller)
TryUpdateModel<TModel>(TModel, IValueProvider)

使用来自值提供程序的值更新指定的模型实例。

(继承自 Controller)
TryUpdateModel<TModel>(TModel, String)

使用来自控制器的当前值提供程序的值和前缀更新指定的模型实例。

(继承自 Controller)
TryUpdateModel<TModel>(TModel, String, IValueProvider)

使用来自值提供程序的值和要包含的属性列表更新指定的模型实例。

(继承自 Controller)
TryUpdateModel<TModel>(TModel, String, String[])

使用来自控制器的当前值提供程序的值、前缀和包含的属性更新指定的模型实例。

(继承自 Controller)
TryUpdateModel<TModel>(TModel, String, String[], IValueProvider)

使用来自值提供程序的值、前缀和包含的属性更新指定的模型实例。

(继承自 Controller)
TryUpdateModel<TModel>(TModel, String, String[], String[])

使用来自控制器的当前值提供程序的值、前缀、要排除的属性列表和要包含的属性列表更新指定的模型实例。

(继承自 Controller)
TryUpdateModel<TModel>(TModel, String, String[], String[], IValueProvider)

使用来自值提供程序的值、前缀、要排除的属性列表和要包含的属性列表更新指定的模型实例。

(继承自 Controller)
TryUpdateModel<TModel>(TModel, String[])

使用来自控制器的当前值提供程序的值和包含的属性更新指定的模型实例。

(继承自 Controller)
TryUpdateModel<TModel>(TModel, String[], IValueProvider)

使用来自值提供程序的值和要包含的属性列表更新指定的模型实例。

(继承自 Controller)
TryValidateModel(Object)

验证指定的模型实例。

(继承自 Controller)
TryValidateModel(Object, String)

使用 HTML 前缀验证指定的模型实例。

(继承自 Controller)
UpdateModel<TModel>(TModel)

使用来自控制器的当前值提供程序的值更新指定的模型实例。

(继承自 Controller)
UpdateModel<TModel>(TModel, IValueProvider)

使用来自值提供程序的值更新指定的模型实例。

(继承自 Controller)
UpdateModel<TModel>(TModel, String)

使用来自控制器的当前值提供程序的值和前缀更新指定的模型实例。

(继承自 Controller)
UpdateModel<TModel>(TModel, String, IValueProvider)

使用来自值提供程序的值、前缀和要包含的属性列表更新指定的模型实例。

(继承自 Controller)
UpdateModel<TModel>(TModel, String, String[])

使用来自控制器的当前值提供程序的值、前缀和包含的属性更新指定的模型实例。

(继承自 Controller)
UpdateModel<TModel>(TModel, String, String[], IValueProvider)

使用来自值提供程序的值、前缀和要包含的属性列表更新指定的模型实例。

(继承自 Controller)
UpdateModel<TModel>(TModel, String, String[], String[])

使用来自控制器的当前值提供程序的值、前缀、要排除的属性列表和要包含的属性列表更新指定的模型实例。

(继承自 Controller)
UpdateModel<TModel>(TModel, String, String[], String[], IValueProvider)

使用值提供程序中的值、前缀、要排除的属性列表和要包括的属性列表汇报指定的模型实例。

(继承自 Controller)
UpdateModel<TModel>(TModel, String[])

使用来自控制器对象的当前值提供程序的值更新指定的模型实例。

(继承自 Controller)
UpdateModel<TModel>(TModel, String[], IValueProvider)

使用来自值提供程序的值、前缀和要包含的属性列表更新指定的模型实例。

(继承自 Controller)
ValidateModel(Object)

验证指定的模型实例。

(继承自 Controller)
ValidateModel(Object, String)

使用 HTML 前缀验证指定的模型实例。

(继承自 Controller)
View()

创建一个 ViewResult 对象,该对象将视图呈现给响应。

(继承自 Controller)
View(IView)

创建一个 ViewResult 对象,该对象呈现指定的 IView 对象。

(继承自 Controller)
View(IView, Object)

创建呈现 ViewResult 指定 IView 对象的 对象。

(继承自 Controller)
View(Object)

ViewResult使用模型创建对象,该模型将视图呈现给响应。

(继承自 Controller)
View(String)

ViewResult使用呈现视图的视图名称创建对象。

(继承自 Controller)
View(String, Object)

创建一个 ViewResult 对象,该对象呈现指定的 IView 对象。

(继承自 Controller)
View(String, String)

ViewResult使用视图名称和母版页名称创建对象,该名称将视图呈现给响应。

(继承自 Controller)
View(String, String, Object)

ViewResult使用视图名称、母版页名称和呈现视图的模型创建对象。

(继承自 Controller)

显式接口实现

IActionFilter.OnActionExecuted(ActionExecutedContext)

此方法调用 OnActionExecuted 方法。

(继承自 Controller)
IActionFilter.OnActionExecuting(ActionExecutingContext)

此方法调用 OnActionExecuting 方法。

(继承自 Controller)
IAsyncController.BeginExecute(RequestContext, AsyncCallback, Object)

此方法调用 BeginExecute 方法。

(继承自 Controller)
IAsyncController.EndExecute(IAsyncResult)

此方法调用 EndExecute 方法。

(继承自 Controller)
IAuthenticationFilter.OnAuthentication(AuthenticationContext)

此方法调用 OnAuthentication 方法。

(继承自 Controller)
IAuthenticationFilter.OnAuthenticationChallenge(AuthenticationChallengeContext)

此方法调用 OnAuthenticationChallenge 方法。

(继承自 Controller)
IAuthorizationFilter.OnAuthorization(AuthorizationContext)

此方法调用 OnAuthorization 方法。

(继承自 Controller)
IController.Execute(RequestContext)

执行指定的请求上下文。

(继承自 ControllerBase)
IExceptionFilter.OnException(ExceptionContext)

此方法调用 OnException 方法。

(继承自 Controller)
IResultFilter.OnResultExecuted(ResultExecutedContext)

此方法调用 OnResultExecuted 方法。

(继承自 Controller)
IResultFilter.OnResultExecuting(ResultExecutingContext)

此方法调用 OnResultExecuting 方法。

(继承自 Controller)

适用于