HttpNoContentOutputFormatter HttpNoContentOutputFormatter HttpNoContentOutputFormatter HttpNoContentOutputFormatter Class

Definition

Sets the status code to 204 if the content is null.

public ref class HttpNoContentOutputFormatter : Microsoft::AspNetCore::Mvc::Formatters::IOutputFormatter
public class HttpNoContentOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter
type HttpNoContentOutputFormatter = class
    interface IOutputFormatter
Public Class HttpNoContentOutputFormatter
Implements IOutputFormatter
Inheritance
HttpNoContentOutputFormatterHttpNoContentOutputFormatterHttpNoContentOutputFormatterHttpNoContentOutputFormatter
Implements

Constructors

HttpNoContentOutputFormatter() HttpNoContentOutputFormatter() HttpNoContentOutputFormatter() HttpNoContentOutputFormatter()

Properties

TreatNullValueAsNoContent TreatNullValueAsNoContent TreatNullValueAsNoContent TreatNullValueAsNoContent

Indicates whether to select this formatter if the returned value from the action is null.

Methods

CanWriteResult(OutputFormatterCanWriteContext) CanWriteResult(OutputFormatterCanWriteContext) CanWriteResult(OutputFormatterCanWriteContext) CanWriteResult(OutputFormatterCanWriteContext)
WriteAsync(OutputFormatterWriteContext) WriteAsync(OutputFormatterWriteContext) WriteAsync(OutputFormatterWriteContext) WriteAsync(OutputFormatterWriteContext)

Applies to