ControllerBase.NotFound
ControllerBase.NotFound
ControllerBase.NotFound
Method
Definition
Overloads
NotFound() NotFound() NotFound() |
Creates an NotFoundResult that produces a Status404NotFound response. |
NotFound(Object) NotFound(Object) NotFound(Object) |
Creates an NotFoundObjectResult that produces a Status404NotFound response. |
NotFound() NotFound() NotFound()
Creates an NotFoundResult that produces a Status404NotFound response.
[Microsoft.AspNetCore.Mvc.NonAction]
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
Returns
The created NotFoundResult for the response.
NotFound(Object) NotFound(Object) NotFound(Object)
Creates an NotFoundObjectResult that produces a Status404NotFound response.
[Microsoft.AspNetCore.Mvc.NonAction]
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
Parameters
Returns
The created NotFoundObjectResult for the response.