Partager via


PageModel.NotFound Méthode

Définition

Surcharges

NotFound()

Crée un NotFoundResult qui produit une Status404NotFound réponse.

NotFound(Object)

Crée un NotFoundObjectResult qui produit une Status404NotFound réponse.

NotFound()

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

Crée un NotFoundResult qui produit une Status404NotFound réponse.

public:
 virtual Microsoft::AspNetCore::Mvc::NotFoundResult ^ NotFound();
public virtual Microsoft.AspNetCore.Mvc.NotFoundResult NotFound ();
abstract member NotFound : unit -> Microsoft.AspNetCore.Mvc.NotFoundResult
override this.NotFound : unit -> Microsoft.AspNetCore.Mvc.NotFoundResult
Public Overridable Function NotFound () As NotFoundResult

Retours

créé NotFoundResult pour la réponse.

S’applique à

NotFound(Object)

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

Crée un NotFoundObjectResult qui produit une Status404NotFound réponse.

public:
 virtual Microsoft::AspNetCore::Mvc::NotFoundObjectResult ^ NotFound(System::Object ^ value);
public virtual Microsoft.AspNetCore.Mvc.NotFoundObjectResult NotFound (object value);
abstract member NotFound : obj -> Microsoft.AspNetCore.Mvc.NotFoundObjectResult
override this.NotFound : obj -> Microsoft.AspNetCore.Mvc.NotFoundObjectResult
Public Overridable Function NotFound (value As Object) As NotFoundObjectResult

Paramètres

value
Object

Retours

créé NotFoundObjectResult pour la réponse.

S’applique à