Class ExistingActionRouteConstraint
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Checks that the routed controller has an action with the specified name.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Web.Mvc.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class ExistingActionRouteConstraint : IContentRouteConstraint
Remarks
This constraint will not work for asynchronous controllers.
Constructors
ExistingActionRouteConstraint(MapContentRouteParameters)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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 |