Interface IContentRoute

Signature for a System.Web.Routing.RouteBase implementations for IContent instances

Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public interface IContentRoute

Properties

Defaults

Default values for the route

Declaration
RouteValueDictionary Defaults { get; set; }
Property Value
Type Description
System.Web.Routing.RouteValueDictionary

Name

The name of the System.Web.Routing.Route

Declaration
string Name { get; }
Property Value
Type Description
System.String

Methods

GetVirtualPath(RequestContext, RouteValueDictionary)

Generates an url for an IContent instance.

Declaration
VirtualPathData GetVirtualPath(RequestContext requestContext, RouteValueDictionary values)
Parameters
Type Name Description
System.Web.Routing.RequestContext requestContext

Current request context

System.Web.Routing.RouteValueDictionary values

The route values

Returns
Type Description
System.Web.Routing.VirtualPathData

An url for an IContent instance or null if no content was associated

MatchConstraints(SegmentContext, HttpContextBase)

Determines if the route matches all constraints.

Declaration
bool MatchConstraints(SegmentContext segmentContext, HttpContextBase context)
Parameters
Type Name Description
SegmentContext segmentContext

The segment context

System.Web.HttpContextBase context

The http context

Returns
Type Description
System.Boolean

true if constraint matches else false

RouteSegmentContext(SegmentContext)

Routes an IContent instance from the context.

Declaration
RouteData RouteSegmentContext(SegmentContext segmentContext)
Parameters
Type Name Description
SegmentContext segmentContext

The segment context

Returns
Type Description
System.Web.Routing.RouteData

A routedata associated witha content instance if match else null.

Extension Methods