RequestDelegateRouteBuilderExtensions.MapMiddlewareVerb メソッド

定義

指定templateverbされた 、、および actionIRouteBuilder対する HTTP 要求にのみ一致するルートを に追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapMiddlewareVerb(Microsoft::AspNetCore::Routing::IRouteBuilder ^ builder, System::String ^ verb, System::String ^ template, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ action);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewareVerb (this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string verb, string template, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> action);
static member MapMiddlewareVerb : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapMiddlewareVerb (builder As IRouteBuilder, verb As String, template As String, action As Action(Of IApplicationBuilder)) As IRouteBuilder

パラメーター

verb
String

ルートで許可される HTTP 動詞。

template
String

ルート テンプレート。

action
Action<IApplicationBuilder>

に適用する IApplicationBuilderアクション。

戻り値

この操作が完了した後の への builder 参照。

適用対象