Share via


Results.NotFound Méthode

Définition

Surcharges

NotFound(Object)

Génère une Status404NotFound réponse.

NotFound<TValue>(TValue)

Génère une Status404NotFound réponse.

NotFound(Object)

Génère une Status404NotFound réponse.

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

Paramètres

value
Object

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

Retours

créé IResult pour la réponse.

S’applique à

NotFound<TValue>(TValue)

Génère une Status404NotFound réponse.

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

Paramètres de type

TValue

Paramètres

value
TValue

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

Retours

créé IResult pour la réponse.

S’applique à