StringRouteConstraint Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Constrains a route parameter to contain only a specified string.
public ref class StringRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class StringRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class StringRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type StringRouteConstraint = class
interface IRouteConstraint
type StringRouteConstraint = class
interface IRouteConstraint
interface IParameterPolicy
type StringRouteConstraint = class
interface IParameterPolicy
interface IRouteConstraint
type StringRouteConstraint = class
interface IRouteConstraint
interface IParameterPolicy
interface IParameterLiteralNodeMatchingPolicy
Public Class StringRouteConstraint
Implements IRouteConstraint
Public Class StringRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
- Inheritance
-
StringRouteConstraint
- Implements
Constructors
StringRouteConstraint(String) |
Initializes a new instance of the StringRouteConstraint class. |
Methods
Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection) |
Determines whether the URL parameter contains a valid value for this constraint. |
Explicit Interface Implementations
IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String) |