Class PartialSegment
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Segment implementation that handles partial routing.
Implements
Inherited Members
Namespace: EPiServer.Web.Routing.Segments.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public class PartialSegment : SegmentBase, ISegment
Constructors
PartialSegment(String, IContentLoader, PartialRouteHandler)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the PartialSegment class.
Declaration
public PartialSegment(string name, IContentLoader contentLoader, PartialRouteHandler partialRouteHandler)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
IContentLoader | contentLoader | The content loader. |
PartialRouteHandler | partialRouteHandler | The partial route handler. |
Methods
GetVirtualPathSegment(RequestContext, RouteValueDictionary)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the string representation of this segments virtual path.
Declaration
public override string GetVirtualPathSegment(RequestContext requestContext, RouteValueDictionary values)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.RequestContext | requestContext | The request |
System.Web.Routing.RouteValueDictionary | values | Custom values |
Returns
Type | Description |
---|---|
System.String | Virtual path from this segment. |
Overrides
GetVirtualPathSegment(RequestContext, RouteValueDictionary, HashSet<String>)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the string representation of this segments virtual path.
Declaration
public override string GetVirtualPathSegment(RequestContext requestContext, RouteValueDictionary values, HashSet<string> usedValues)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.RequestContext | requestContext | The request |
System.Web.Routing.RouteValueDictionary | values | Custom values |
System.Collections.Generic.HashSet<System.String> | usedValues | Route values that are handled and should not be added to the query string. |
Returns
Type | Description |
---|---|
System.String | Virtual path from this segment. |
Overrides
RouteDataMatch(SegmentContext)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Route incoming segment.
Declaration
public override bool RouteDataMatch(SegmentContext context)
Parameters
Type | Name | Description |
---|---|---|
SegmentContext | context | Routing context |
Returns
Type | Description |
---|---|
System.Boolean | True if the segment part matches the pattern |