Try our conversational search powered by Generative AI!

Class RoutingOptions

Inheritance
System.Object
RoutingOptions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[Options]
public class RoutingOptions

Constructors

RoutingOptions()

Declaration
public RoutingOptions()

Properties

EnableRecursivePartialRouting

Specifies if the result of a successful partial routing should be propagated to further partial routing.

Declaration
public bool EnableRecursivePartialRouting { get; set; }
Property Value
Type Description
System.Boolean

UrlCacheExpirationTime

Gets the content url cache expiration time .

Declaration
public TimeSpan UrlCacheExpirationTime { get; set; }
Property Value
Type Description
System.TimeSpan

UsePrimaryHostForEditAndPreviewUrls

Specifies that the HostDefinitionType that is Primary should be used when generating edit and preview urls.

Declaration
public bool UsePrimaryHostForEditAndPreviewUrls { get; set; }
Property Value
Type Description
System.Boolean

UsePrimaryHostForOutgoingUrls

Specifies that the HostDefinitionType that is Primary should be used when generating outgoing url.

Declaration
public bool UsePrimaryHostForOutgoingUrls { get; set; }
Property Value
Type Description
System.Boolean
Remarks

This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version.

UseTrailingSlash

Gets or sets a value indicating whether a trailing slash should be added for urls to content.

Declaration
public bool UseTrailingSlash { get; set; }
Property Value
Type Description
System.Boolean

true if a trailing slash should be used; otherwise, false.

Remarks

Default value is true.

Methods

ConfigureForExternalTemplates()

Configures routing to support that templates are deployed in a separate application

Declaration
public void ConfigureForExternalTemplates()

Extension Methods