Udostępnij za pośrednictwem


RouteBase.GetConstraints Metoda

Definicja

Wyodrębnia constatins z danego RouteTemplateelementu .

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)

Parametry

inlineConstraintResolver
IInlineConstraintResolver

Służy IInlineConstraintResolver do rozpoznawania ograniczeń wbudowanych.

parsedTemplate
RouteTemplate

RouteTemplate Wystąpienie.

constraints
IDictionary<String,Object>

Kolekcja ograniczeń szablonu trasy.

Zwraca

Dotyczy