Delen via


RouteConstraintBuilder.AddResolvedConstraint(String, String) Method

Definition

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