Sdílet prostřednictvím


TemplateBinder.TryProcessConstraints Metoda

Definice

Zpracovává omezení, pokud byly předány do TemplateBinder konstruktoru.

public:
 bool TryProcessConstraints(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ combinedValues, [Runtime::InteropServices::Out] System::String ^ % parameterName, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Routing::IRouteConstraint ^ % constraint);
public bool TryProcessConstraints (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary combinedValues, out string parameterName, out Microsoft.AspNetCore.Routing.IRouteConstraint constraint);
public bool TryProcessConstraints (Microsoft.AspNetCore.Http.HttpContext? httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary combinedValues, out string? parameterName, out Microsoft.AspNetCore.Routing.IRouteConstraint? constraint);
member this.TryProcessConstraints : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteValueDictionary * string * IRouteConstraint -> bool
Public Function TryProcessConstraints (httpContext As HttpContext, combinedValues As RouteValueDictionary, ByRef parameterName As String, ByRef constraint As IRouteConstraint) As Boolean

Parametry

httpContext
HttpContext

Přidružený HttpContext k aktuálnímu požadavku.

combinedValues
RouteValueDictionary

Slovník obsahující parametry pro trasu.

parameterName
String

Název parametru

constraint
IRouteConstraint

Objekt omezení.

Návraty

true pokud byla omezení zpracována úspěšně, jinak false.

Platí pro