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.