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.Cms.AspNet.dll
Version: 11.20.7Syntax
public class PartialSegment : SegmentBase, ISegment
Constructors
PartialSegment(String, IContentLoader, PartialRouteHandler, RoutingOptions)
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, RoutingOptions routingOptions)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
IContentLoader | contentLoader | |
PartialRouteHandler | partialRouteHandler | |
RoutingOptions | routingOptions |
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 |