NotFoundResult Class
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.
Represents an StatusCodeResult that when executed will produce a Not Found (404) response.
public ref class NotFoundResult : Microsoft::AspNetCore::Mvc::StatusCodeResult
public class NotFoundResult : Microsoft.AspNetCore.Mvc.StatusCodeResult
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(404)]
public class NotFoundResult : Microsoft.AspNetCore.Mvc.StatusCodeResult
type NotFoundResult = class
inherit StatusCodeResult
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(404)>]
type NotFoundResult = class
inherit StatusCodeResult
Public Class NotFoundResult
Inherits StatusCodeResult
- Inheritance
- Attributes
Not |
Creates a new NotFoundResult instance. |
Status |
Gets the HTTP status code. (Inherited from StatusCodeResult) |
Execute |
Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method. (Inherited from StatusCodeResult) |
Execute |
Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method. The default implementation of this method calls the ExecuteResult(ActionContext) method and returns a completed task. (Inherited from ActionResult) |
IStatus |
(Inherited from StatusCodeResult) |
Produkt | Versiounen |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |