Results.NotFound Methode

Definition

Überlädt

NotFound(Object)

Erzeugt eine Status404NotFound Antwort.

NotFound<TValue>(TValue)

Erzeugt eine Status404NotFound Antwort.

NotFound(Object)

Erzeugt eine Status404NotFound Antwort.

public static Microsoft.AspNetCore.Http.IResult NotFound (object? value = default);
static member NotFound : obj -> Microsoft.AspNetCore.Http.IResult
Public Shared Function NotFound (Optional value As Object = Nothing) As IResult

Parameter

value
Object

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

Gibt zurück

Die für die Antwort erstellte IResult .

Gilt für:

NotFound<TValue>(TValue)

Erzeugt eine Status404NotFound Antwort.

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

Typparameter

TValue

Parameter

value
TValue

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

Gibt zurück

Die für die Antwort erstellte IResult .

Gilt für: