Controller.HttpNotFound Method (String)

Returns an instance of the HttpNotFoundResult class.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Protected Friend Overridable Function HttpNotFound ( _
    statusDescription As String _
) As HttpNotFoundResult
'Usage
Dim statusDescription As String 
Dim returnValue As HttpNotFoundResult 

returnValue = Me.HttpNotFound(statusDescription)
protected internal virtual HttpNotFoundResult HttpNotFound(
    string statusDescription
)
protected public:
virtual HttpNotFoundResult^ HttpNotFound(
    String^ statusDescription
)
abstract HttpNotFound : 
        statusDescription:string -> HttpNotFoundResult  
override HttpNotFound : 
        statusDescription:string -> HttpNotFoundResult
function HttpNotFound(
    statusDescription : String
) : HttpNotFoundResult

Parameters

Return Value

Type: System.Web.Mvc.HttpNotFoundResult
An instance of the HttpNotFoundResult class.

See Also

Reference

Controller Class

HttpNotFound Overload

System.Web.Mvc Namespace