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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for