ControllerBase.NotFound Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| NotFound(Object) | 
						 Creates a NotFoundObjectResult that produces a Status404NotFound response.  | 
        	
| NotFound() | 
						 Creates a NotFoundResult that produces a Status404NotFound response.  | 
        	
NotFound(Object)
- Source:
 - ControllerBase.cs
 
- Source:
 - ControllerBase.cs
 
- Source:
 - ControllerBase.cs
 
Creates a NotFoundObjectResult that produces a Status404NotFound response.
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
	Parameters
- value
 - Object
 
Returns
The created NotFoundObjectResult for the response.
- Attributes
 
Applies to
NotFound()
- Source:
 - ControllerBase.cs
 
- Source:
 - ControllerBase.cs
 
- Source:
 - ControllerBase.cs
 
Creates a NotFoundResult that produces a Status404NotFound response.
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
	Returns
The created NotFoundResult for the response.
- Attributes