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
System.Object
ExistingActionRouteConstraint
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.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 |