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

Class PartialSegment

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Segment implementation that handles partial routing.

Inheritance
System.Object
PartialSegment
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.Internal
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
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

Overrides

Implements

Extension Methods