November Happy Hour will be moved to Thursday December 5th.

Class RoutedContentEvaluationResult

Specifis how the current http request should be handled for current routed content

Inheritance
System.Object
RoutedContentEvaluationResult
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNetCore.Routing.dll
Version: 12.0.3
Syntax
public class RoutedContentEvaluationResult : Object

Fields

NotFound

The http context should return System.Net.HttpStatusCode.NotFound

Declaration
public static RoutedContentEvaluationResult NotFound
Field Value
Type Description
RoutedContentEvaluationResult

OK

The http context should proceeed to a matching System.Net.EndPoint (if any).

Declaration
public static RoutedContentEvaluationResult OK
Field Value
Type Description
RoutedContentEvaluationResult

Properties

Location

In case of a redirect status, indicates the location for the redirect

Declaration
public string Location { get; }
Property Value
Type Description
System.String

Status

Specifies the status for the current http request

Declaration
public int Status { get; }
Property Value
Type Description
System.Int32

Methods

Redirect(HttpRedirect, String)

The http context should be redirected to a different location

Declaration
public static RoutedContentEvaluationResult Redirect(HttpRedirect redirect, string location)
Parameters
Type Name Description
HttpRedirect redirect

Specifies how the redirection should be done

System.String location

Specifies the location for the redirect

Returns
Type Description
RoutedContentEvaluationResult

Extension Methods