RouteConstraintBuilder.AddResolvedConstraint(String, String) Metodo

Definizione

Aggiunge un vincolo per la chiave specificata, risolto da 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)

Parametri

key
String

Chiave.

constraintText
String

Testo da risolvere da IInlineConstraintResolver.

Commenti

Può IInlineConstraintResolver creare IRouteConstraint istanze in base a constraintText. Vedere ConstraintMap per registrare i tipi di vincolo personalizzati.

Si applica a