StatusCodeHttpResult.ExecuteAsync(HttpContext) 方法

定义

设置 HTTP 响应的状态代码。

public System.Threading.Tasks.Task ExecuteAsync (Microsoft.AspNetCore.Http.HttpContext httpContext);
abstract member ExecuteAsync : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task
override this.ExecuteAsync : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task
Public Function ExecuteAsync (httpContext As HttpContext) As Task

参数

httpContext
HttpContext

当前请求的 HttpContext

返回

表示异步执行操作的任务。

实现

适用于