TypedResults.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() |
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 à
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