Share via


RouteBase.GetConstraints Method

Definition

Extracts constatins from a given 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)

Parameters

inlineConstraintResolver
IInlineConstraintResolver

An IInlineConstraintResolver used for resolving inline constraints.

parsedTemplate
RouteTemplate

A RouteTemplate instance.

constraints
IDictionary<String,Object>

A collection of constraints on the route template.

Returns

Applies to