Results.NotFound Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour