DefaultInlineConstraintResolver.ResolveConstraint(String) Method
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.
Resolves the inline constraint.
public:
virtual Microsoft::AspNetCore::Routing::IRouteConstraint ^ ResolveConstraint(System::String ^ inlineConstraint);
public virtual Microsoft.AspNetCore.Routing.IRouteConstraint ResolveConstraint (string inlineConstraint);
public virtual Microsoft.AspNetCore.Routing.IRouteConstraint? ResolveConstraint (string inlineConstraint);
abstract member ResolveConstraint : string -> Microsoft.AspNetCore.Routing.IRouteConstraint
override this.ResolveConstraint : string -> Microsoft.AspNetCore.Routing.IRouteConstraint
Public Overridable Function ResolveConstraint (inlineConstraint As String) As IRouteConstraint
Parameters
- inlineConstraint
- String
The inline constraint to resolve.
Returns
The IRouteConstraint the inline constraint was resolved to.
Implements
Examples
A typical constraint looks like the following "exampleConstraint(arg1, arg2, 12)". Here if the type registered for exampleConstraint has a single constructor with one argument, The entire string "arg1, arg2, 12" will be treated as a single argument. In all other cases arguments are split at comma.