Dela via


StatusCodeHttpResult.ExecuteAsync(HttpContext) Method

Definition

Sets the status code on the HTTP response.

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

Parameters

httpContext
HttpContext

The HttpContext for the current request.

Returns

A task that represents the asynchronous execute operation.

Implements

Applies to