Compartir a través de


TemplateBinder.TryProcessConstraints Método

Definición

Procesa las restricciones si se pasaron al constructor TemplateBinder.

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

Parámetros

httpContext
HttpContext

asociado HttpContext a la solicitud actual.

combinedValues
RouteValueDictionary

Diccionario que contiene los parámetros de la ruta.

parameterName
String

El nombre del parámetro.

constraint
IRouteConstraint

Objeto de la restricción.

Devoluciones

true si las restricciones se procesaron correctamente y false en caso contrario.

Se aplica a