Partager via


RouteBase.GetConstraints Méthode

Définition

Extrait les constatins d’un donné RouteTemplate.

protected:
 static System::Collections::Generic::IDictionary<System::String ^, Microsoft::AspNetCore::Routing::IRouteConstraint ^> ^ GetConstraints(Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ inlineConstraintResolver, Microsoft::AspNetCore::Routing::Template::RouteTemplate ^ parsedTemplate, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ constraints);
protected static System.Collections.Generic.IDictionary<string,Microsoft.AspNetCore.Routing.IRouteConstraint> GetConstraints (Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver, Microsoft.AspNetCore.Routing.Template.RouteTemplate parsedTemplate, System.Collections.Generic.IDictionary<string,object> constraints);
protected static System.Collections.Generic.IDictionary<string,Microsoft.AspNetCore.Routing.IRouteConstraint> GetConstraints (Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver, Microsoft.AspNetCore.Routing.Template.RouteTemplate parsedTemplate, System.Collections.Generic.IDictionary<string,object>? constraints);
static member GetConstraints : Microsoft.AspNetCore.Routing.IInlineConstraintResolver * Microsoft.AspNetCore.Routing.Template.RouteTemplate * System.Collections.Generic.IDictionary<string, obj> -> System.Collections.Generic.IDictionary<string, Microsoft.AspNetCore.Routing.IRouteConstraint>
Protected Shared Function GetConstraints (inlineConstraintResolver As IInlineConstraintResolver, parsedTemplate As RouteTemplate, constraints As IDictionary(Of String, Object)) As IDictionary(Of String, IRouteConstraint)

Paramètres

inlineConstraintResolver
IInlineConstraintResolver

utilisé IInlineConstraintResolver pour résoudre les contraintes inline.

parsedTemplate
RouteTemplate

Instance de RouteTemplate.

constraints
IDictionary<String,Object>

Collection de contraintes sur le modèle d’itinéraire.

Retours

S’applique à