Compartilhar via


TemplateBinder.TryProcessConstraints Método

Definição

Processa as restrições se elas foram passadas para o construtor 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

O HttpContext associado à solicitação atual.

combinedValues
RouteValueDictionary

Um dicionário que contém os parâmetros para a rota.

parameterName
String

O nome do parâmetro.

constraint
IRouteConstraint

O objeto de restrição.

Retornos

true se as restrições foram processadas com êxito e false caso contrário.

Aplica-se a