TemplateBinder.TryProcessConstraints メソッド

定義

制約が 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

パラメーター

httpContext
HttpContext

現在の HttpContext 要求に関連付けられている 。

combinedValues
RouteValueDictionary

ルートのパラメーターを含むディクショナリ。

parameterName
String

パラメーターの名前。

constraint
IRouteConstraint

制約オブジェクト。

戻り値

true 制約が正常に処理された場合は 、それ以外の場合は false。

適用対象