Share via


Controller.HttpNotFound Method

Definition

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.

Applies to