HttpNoContentOutputFormatter Klasse

Definition

Legt den Statuscode auf 204 fest, wenn der Inhalt null ist.

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
Vererbung
HttpNoContentOutputFormatter
Implementiert

Konstruktoren

HttpNoContentOutputFormatter()

Legt den Statuscode auf 204 fest, wenn der Inhalt null ist.

Eigenschaften

TreatNullValueAsNoContent

Gibt an, ob dieser Formatter ausgewählt werden soll, wenn der zurückgegebene Wert aus der Aktion null ist.

Methoden

CanWriteResult(OutputFormatterCanWriteContext)

Bestimmt, ob dies IOutputFormatter ein Objekt des angegebenen Typs serialisieren kann.

WriteAsync(OutputFormatterWriteContext)

Schreibt das Objekt, das durch contextdie Eigenschaft "Object" dargestellt wird.

Gilt für