Try our conversational search powered by Generative AI!

Class MapContentRouteParameters

Contains the optional parameter values for calls to MapContentRoute".

Inheritance
System.Object
MapContentRouteParameters
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
public class MapContentRouteParameters

Constructors

MapContentRouteParameters()

Creates a MapContentRouteParameters object with the default values. Use the property accessors to change the default values.

Declaration
public MapContentRouteParameters()
Remarks

The default values for the properties are:

Property nameDefault value
ActionHandlersnull
Constraintsnull
ControllerFindernull
ControllerTypeMapnull
DirectionSupportedDirection.Both
RootDir"/"
RouteHandlernull
RouteParsernull
SegmentMappingsnull
ServiceLocatornull
UrlSegmentRouternull
LanguageBranchRepositorynull
ContentQueryablenull
PartialRouteHandlernull

Properties

ActionHandlers

Handlers for unknown actions

Declaration
public IList<IUnknownActionHandler> ActionHandlers { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<IUnknownActionHandler>
Remarks

Default value is null. A null value means that action handlers will be looked up via the service locator specified in ServiceLocator.

BasePathResolver

Gets or sets the base path resolver.

Declaration
public Func<RequestContext, RouteValueDictionary, string> BasePathResolver { get; set; }
Property Value
Type Description
System.Func<System.Web.Routing.RequestContext, System.Web.Routing.RouteValueDictionary, System.String>

The base path resolver.

Remarks

Default resolves as "/".

Constraints

Constrains for the route.

Declaration
public object Constraints { get; set; }
Property Value
Type Description
System.Object
Remarks

Default value is null. A constraint for the key "action" will automatically set up if the key is missing.

ContentLoader

Gets or sets the content loader.

Declaration
public IContentLoader ContentLoader { get; set; }
Property Value
Type Description
IContentLoader

The content queryable.

ContentVersionRepository

Gets or sets the content version repository.

Declaration
public IContentVersionRepository ContentVersionRepository { get; set; }
Property Value
Type Description
IContentVersionRepository

The content version repository.

ControllerTypeMap

Controler type map to use.

Declaration
public IControllerTypeMap ControllerTypeMap { get; set; }
Property Value
Type Description
IControllerTypeMap
Remarks

Default value is null. A null value means that the controller type map to use will be looked up via the service locator specified in ServiceLocator.

Direction

The supported route direction for this page route.

Declaration
public SupportedDirection Direction { get; set; }
Property Value
Type Description
SupportedDirection
Remarks

Default value is Both.

LanguageBranchRepository

Gets or sets the language branch repository.

Declaration
public ILanguageBranchRepository LanguageBranchRepository { get; set; }
Property Value
Type Description
ILanguageBranchRepository

The language branch repository.

Remarks

Default value is null. A null value means that Current will be used.

PartialRouteHandler

Gets or sets the partial route handler.

Declaration
public PartialRouteHandler PartialRouteHandler { get; set; }
Property Value
Type Description
PartialRouteHandler

The partial route handler.

PermanentLinkMapper

Gets or sets the permanent link mapper.

Declaration
public IPermanentLinkMapper PermanentLinkMapper { get; set; }
Property Value
Type Description
IPermanentLinkMapper

The permanent link mapper.

RouteHandler

The controller finder to use.

Declaration
public IRouteHandler RouteHandler { get; set; }
Property Value
Type Description
System.Web.Routing.IRouteHandler
Remarks

Default value is null. A null value means that the route handler to use will be looked up via the service locator specified in ServiceLocator.

RouteParser

The route parser to use.

Declaration
public IRouteParser RouteParser { get; set; }
Property Value
Type Description
IRouteParser
Remarks

Default value is null. A null value means that the route parser to use will be looked up via the service locator specified in ServiceLocator.

SegmentMappings

Segment mappings that will be used to parse a route.

Declaration
public IDictionary<string, ISegment> SegmentMappings { get; set; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, ISegment>
Remarks

Default value is null. Mappings for "node" and "simpleadress" will automatically be added.

ServiceLocator

The route handler to use.

Declaration
public IServiceLocator ServiceLocator { get; set; }
Property Value
Type Description
IServiceLocator
Remarks

Default value is null. A null value means that Current will be used.

StrictLanguageRoutingResolver

Gets or sets the strict language handling resolver.

Declaration
public Func<bool> StrictLanguageRoutingResolver { get; set; }
Property Value
Type Description
System.Func<System.Boolean>

The strict language handling resolver.

TemplateResolver

Gets or sets the template resolver.

Declaration
public TemplateResolver TemplateResolver { get; set; }
Property Value
Type Description
TemplateResolver

The template resolver.

UpdateCurrentLanguage

Gets or sets the implementation to update the current language.

Declaration
public IUpdateCurrentLanguage UpdateCurrentLanguage { get; set; }
Property Value
Type Description
IUpdateCurrentLanguage

The implementation of current language updating.

UrlResolver

Gets or sets the URL resolver.

Declaration
public UrlResolver UrlResolver { get; set; }
Property Value
Type Description
UrlResolver

The URL resolver.

UrlSegmentRouter

The url segment router to use.

Declaration
public IUrlSegmentRouter UrlSegmentRouter { get; set; }
Property Value
Type Description
IUrlSegmentRouter
Remarks

Default value is null. A null value means that the url segment router to use will be looked up via the service locator specified in ServiceLocator.

ViewRegistrator

Gets or sets the view registrator.

Declaration
public IViewRegistrator ViewRegistrator { get; set; }
Property Value
Type Description
IViewRegistrator

The view registrator.

Extension Methods