NoContent Class

Definition

Represents an IResult that when executed will produce an HTTP response with the No Content (204) status code.

C#
public class NoContent : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
Inheritance
NoContent
Implements

Properties

StatusCode

Gets the HTTP status code: Status204NoContent

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Explicit Interface Implementations

Applies to

Product Versions
ASP.NET Core 7.0, 8.0, 9.0