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

Class SimpleAddressSegment

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The segment representing a EPiServer.Web.SimpleAddress when routing.

Inheritance
System.Object
SimpleAddressSegment
Implements
Namespace: EPiServer.Web.Routing.Segments.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class SimpleAddressSegment : NodeSegment, ISegment

Constructors

SimpleAddressSegment(String, String, IUrlSegmentRouter, IContentLoader, UrlResolver, IContentLanguageSettingsHandler)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the SimpleAddressSegment class.

Declaration
public SimpleAddressSegment(string name, string friendlyUrlExtension, IUrlSegmentRouter urlSegmentRouter, IContentLoader contentLoader, UrlResolver urlResolver, IContentLanguageSettingsHandler contentSettingsLanguageHandler)
Parameters
Type Name Description
System.String name

Name of the segment.

System.String friendlyUrlExtension

The extension used for friendly URL generation.

IUrlSegmentRouter urlSegmentRouter

The router used when resolving nodes.

IContentLoader contentLoader

The content loader.

UrlResolver urlResolver

The url resolver to use.

IContentLanguageSettingsHandler contentSettingsLanguageHandler

Content language settings handler to use

Properties

MatchOneSegment

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets or sets a value indicating whether only one segment should be matched for simple address.

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

true if only one segment is matched for simple address; otherwise, false.

Methods

GetIncomingNode(ContentReference, SegmentContext)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Get the next Node within the context.

Declaration
protected override IEnumerable<SegmentNode> GetIncomingNode(ContentReference contentLink, SegmentContext context)
Parameters
Type Name Description
ContentReference contentLink

structure Node

SegmentContext context

Segment context

Returns
Type Description
System.Collections.Generic.IEnumerable<SegmentNode>

structure Node

Overrides

RouteDataMatch(SegmentContext)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Set the node, language, and controller value.

Declaration
public override bool RouteDataMatch(SegmentContext context)
Parameters
Type Name Description
SegmentContext context

Segment context

Returns
Type Description
System.Boolean

True if a node is found that matches the url

Overrides

Implements

Extension Methods