C# Class NotFoundMvc.NotFoundViewResult

Renders a view called "NotFound" and sets the response status code to 404. View data is assigned for "RequestedUrl" and "ReferrerUrl".
Inheritance: System.Web.Mvc.HttpNotFoundResult
Afficher le fichier Open project: DevRainSolutions/KyivSmartCity Class Usage Examples

Méthodes publiques

Méthode Description
ExecuteResult ( ControllerContext context ) : void
NotFoundViewResult ( ) : System

Private Methods

Méthode Description
ExtractOriginalUrlFromExecuteUrlModeErrorRequest ( Uri url ) : string

Handles the case when a web.config <error statusCode="404" path="/notfound" responseMode="ExecuteURL" /> is triggered. The original URL is passed via the querystring.

GetReferrerUrl ( System.Web.HttpRequestBase request, string url ) : string
GetRequestedUrl ( System.Web.HttpRequestBase request ) : string

Method Details

ExecuteResult() public méthode

public ExecuteResult ( ControllerContext context ) : void
context ControllerContext
Résultat void

NotFoundViewResult() public méthode

public NotFoundViewResult ( ) : System
Résultat System