Class ExistingActionRouteConstraint

Checks that the routed controller has an action with the specified name.

Inheritance
System.Object
ExistingActionRouteConstraint
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.Mvc
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class ExistingActionRouteConstraint : IContentRouteConstraint
Remarks

This constraint will not work for asynchronous controllers.

Constructors

ExistingActionRouteConstraint(MapContentRouteParameters)

Creates a ExistingActionRouteConstraint with required parameters.

Declaration
public ExistingActionRouteConstraint(MapContentRouteParameters mapContentRouteParameters)
Parameters
Type Name Description
MapContentRouteParameters mapContentRouteParameters

The map page route parameters contains required dependencies.

Methods

Match(Route, SegmentContext, String)

Evaluates if the routed IContent matches the implemented constraint.

Declaration
public virtual bool Match(Route route, SegmentContext routingContext, string parameterName)
Parameters
Type Name Description
System.Web.Routing.Route route

The route.

SegmentContext routingContext

The routing context.

System.String parameterName

Name of the parameter.

Returns
Type Description
System.Boolean

true if the route matches the constraint else false.

Exceptions
Type Condition
System.NotImplementedException

Implements

Extension Methods