Class SimpleAddressSegment
The segment representing a SimpleAddress when routing.
Implements
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.Segments
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class SimpleAddressSegment : NodeSegment, ISegment
Constructors
SimpleAddressSegment(String, String, IUrlSegmentRouter, IContentLoader, UrlResolver, IContentLanguageSettingsHandler)
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
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)
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)
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 |