Class PartialSegment

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
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class PartialSegment : SegmentBase, ISegment

Constructors

PartialSegment(String, IContentLoader, PartialRouteHandler)

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)

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>)

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)

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