Class SimpleAddressSegment
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The segment representing a EPiServer.Web.SimpleAddress when routing.
Implements
Inherited Members
Namespace: EPiServer.Web.Routing.Segments.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
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 |
|
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 ContentReference GetIncomingNode(ContentReference contentLink, SegmentContext context)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | structure Node |
SegmentContext | context | Segment context |
Returns
Type | Description |
---|---|
ContentReference | 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 |