Udostępnij za pośrednictwem


ControllerBase.NotFound Metoda

Definicja

Przeciążenia

NotFound(Object)

Tworzy NotFoundObjectResult, który generuje odpowiedź Status404NotFound.

NotFound()

Tworzy NotFoundResult, który generuje odpowiedź Status404NotFound.

NotFound(Object)

Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs

Tworzy NotFoundObjectResult, który generuje odpowiedź Status404NotFound.

public:
 virtual Microsoft::AspNetCore::Mvc::NotFoundObjectResult ^ NotFound(System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.NotFoundObjectResult NotFound (object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.NotFoundObjectResult NotFound (object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

Parametry

value
Object

Zwraca

Utworzona NotFoundObjectResult odpowiedzi.

Atrybuty

Dotyczy

NotFound()

Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs

Tworzy NotFoundResult, który generuje odpowiedź Status404NotFound.

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

Zwraca

Utworzona NotFoundResult odpowiedzi.

Atrybuty

Dotyczy