TypedResults.NotFound Methode

Definition

Überlädt

NotFound()

Erzeugt eine Status404NotFound Antwort.

NotFound<TValue>(TValue)

Erzeugt eine Status404NotFound Antwort.

NotFound()

Erzeugt eine Status404NotFound Antwort.

public static Microsoft.AspNetCore.Http.HttpResults.NotFound NotFound ();
static member NotFound : unit -> Microsoft.AspNetCore.Http.HttpResults.NotFound
Public Shared Function NotFound () As NotFound

Gibt zurück

Die für die Antwort erstellte NotFound .

Gilt für:

NotFound<TValue>(TValue)

Erzeugt eine Status404NotFound Antwort.

public static Microsoft.AspNetCore.Http.HttpResults.NotFound<TValue> NotFound<TValue> (TValue? value);
static member NotFound : 'Value -> Microsoft.AspNetCore.Http.HttpResults.NotFound<'Value>
Public Shared Function NotFound(Of TValue) (value As TValue) As NotFound(Of TValue)

Typparameter

TValue

Der Typ des Objekts, das im JSON-Format in den Antworttext serialisiert wird.

Parameter

value
TValue

Der Wert, der in den HTTP-Antworttext aufgenommen werden soll.

Gibt zurück

Die für die Antwort erstellte NotFound<TValue> .

Gilt für: