Share via


StatusCodeHttpResult Class

Definition

Represents an IResult that when executed will produce an HTTP response with the given response status code.

public sealed class StatusCodeHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult
type StatusCodeHttpResult = class
    interface IResult
    interface IStatusCodeHttpResult
Public NotInheritable Class StatusCodeHttpResult
Implements IResult, IStatusCodeHttpResult
Inheritance
StatusCodeHttpResult
Implements

Properties

StatusCode

Gets the HTTP status code.

Methods

ExecuteAsync(HttpContext)

Sets the status code on the HTTP response.

Explicit Interface Implementations

IStatusCodeHttpResult.StatusCode

Applies to