Controller.HttpNotFound 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
HttpNotFound() |
Returns an instance of the HttpNotFoundResult class. |
HttpNotFound(String) |
Returns an instance of the HttpNotFoundResult class. |
HttpNotFound()
Returns an instance of the HttpNotFoundResult class.
protected internal System.Web.Mvc.HttpNotFoundResult HttpNotFound ();
member this.HttpNotFound : unit -> System.Web.Mvc.HttpNotFoundResult
Protected Friend Function HttpNotFound () As HttpNotFoundResult
Returns
An instance of the HttpNotFoundResult class.
Applies to
HttpNotFound(String)
Returns an instance of the HttpNotFoundResult class.
protected internal virtual System.Web.Mvc.HttpNotFoundResult HttpNotFound (string statusDescription);
abstract member HttpNotFound : string -> System.Web.Mvc.HttpNotFoundResult
override this.HttpNotFound : string -> System.Web.Mvc.HttpNotFoundResult
Protected Friend Overridable Function HttpNotFound (statusDescription As String) As HttpNotFoundResult
Parameters
- statusDescription
- String
The status description.
Returns
An instance of the HttpNotFoundResult class.