RouteConstraintBuilder.AddResolvedConstraint(String, 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.
Adds a constraint for the given key, resolved by the IInlineConstraintResolver.
public:
void AddResolvedConstraint(System::String ^ key, System::String ^ constraintText);
public void AddResolvedConstraint (string key, string constraintText);
member this.AddResolvedConstraint : string * string -> unit
Public Sub AddResolvedConstraint (key As String, constraintText As String)
Parameters
- key
- String
The key.
- constraintText
- String
The text to be resolved by IInlineConstraintResolver.
Remarks
The IInlineConstraintResolver can create IRouteConstraint instances based on constraintText
. See ConstraintMap to register custom constraint types.
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