Share via


NoContent Class

Definition

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

public class NoContent : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type NoContent = class
    interface IResult
    interface IEndpointMetadataProvider
    interface IStatusCodeHttpResult
Public Class NoContent
Implements IEndpointMetadataProvider, IResult, IStatusCodeHttpResult
Inheritance
NoContent
Implements

Properties

StatusCode

Gets the HTTP status code: Status204NoContent

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Explicit Interface Implementations

IEndpointMetadataProvider.PopulateMetadata(MethodInfo, EndpointBuilder)

Populates metadata for the related Endpoint and MethodInfo.

IStatusCodeHttpResult.StatusCode

Applies to