Compartir a través de


PageModel.NotFound Método

Definición

Sobrecargas

NotFound()

Crea un objeto NotFoundResult que genera una Status404NotFound respuesta.

NotFound(Object)

Crea un objeto NotFoundObjectResult que genera una Status404NotFound respuesta.

NotFound()

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

Crea un objeto NotFoundResult que genera una Status404NotFound respuesta.

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

Devoluciones

objeto creado NotFoundResult para la respuesta.

Se aplica a

NotFound(Object)

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

Crea un objeto NotFoundObjectResult que genera una Status404NotFound respuesta.

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

Parámetros

value
Object

Devoluciones

objeto creado NotFoundObjectResult para la respuesta.

Se aplica a