Aracılığıyla paylaş


RouteBase.GetConstraints Yöntem

Tanım

Belirli RouteTemplatebir içindeki constatin'leri ayıklar.

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)

Parametreler

inlineConstraintResolver
IInlineConstraintResolver

IInlineConstraintResolver Satır içi kısıtlamaları çözümlemek için kullanılan.

parsedTemplate
RouteTemplate

Bir RouteTemplate örnek.

constraints
IDictionary<String,Object>

Yol şablonundaki kısıtlamalar koleksiyonu.

Döndürülenler

Şunlara uygulanır