Share via


TypedResults.NotFound Méthode

Définition

Surcharges

NotFound()

Génère une Status404NotFound réponse.

NotFound<TValue>(TValue)

Génère une Status404NotFound réponse.

NotFound()

Génère une Status404NotFound réponse.

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

Retours

créé NotFound pour la réponse.

S’applique à

NotFound<TValue>(TValue)

Génère une Status404NotFound réponse.

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)

Paramètres de type

TValue

Type d’objet qui sera sérialisé au format JSON dans le corps de la réponse.

Paramètres

value
TValue

Valeur à inclure dans le corps de la réponse HTTP.

Retours

créé NotFound<TValue> pour la réponse.

S’applique à