共用方式為


RequestDelegateRouteBuilderExtensions.MapVerb 方法

定義

多載

MapVerb(IRouteBuilder, String, String, RequestDelegate)

將路由加入至 IRouteBuilder ,只符合指定 verbtemplatehandler 的 HTTP 要求。

MapVerb(IRouteBuilder, String, String, Action<IApplicationBuilder>)

將路由加入至 IRouteBuilder ,只符合指定 verbtemplateaction 的 HTTP 要求。

MapVerb(IRouteBuilder, String, String, Func<HttpRequest,HttpResponse,RouteData,Task>)

將路由加入至 IRouteBuilder ,只符合指定 verbtemplatehandler 的 HTTP 要求。

MapVerb(IRouteBuilder, String, String, RequestDelegate)

來源:
RequestDelegateRouteBuilderExtensions.cs
來源:
RequestDelegateRouteBuilderExtensions.cs
來源:
RequestDelegateRouteBuilderExtensions.cs

將路由加入至 IRouteBuilder ,只符合指定 verbtemplatehandler 的 HTTP 要求。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapVerb(Microsoft::AspNetCore::Routing::IRouteBuilder ^ builder, System::String ^ verb, System::String ^ template, Microsoft::AspNetCore::Http::RequestDelegate ^ handler);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapVerb (this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string verb, string template, Microsoft.AspNetCore.Http.RequestDelegate handler);
static member MapVerb : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * Microsoft.AspNetCore.Http.RequestDelegate -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapVerb (builder As IRouteBuilder, verb As String, template As String, handler As RequestDelegate) As IRouteBuilder

參數

verb
String

路由所允許的 HTTP 動詞。

template
String

路由範本。

handler
RequestDelegate

RequestDelegate路由處理常式。

傳回

此作業完成之後的 builder 參考。

適用於

MapVerb(IRouteBuilder, String, String, Action<IApplicationBuilder>)

將路由加入至 IRouteBuilder ,只符合指定 verbtemplateaction 的 HTTP 要求。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapVerb(Microsoft::AspNetCore::Routing::IRouteBuilder ^ builder, System::String ^ verb, System::String ^ template, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ action);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapVerb (this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string verb, string template, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> action);
static member MapVerb : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapVerb (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 參考。

適用於

MapVerb(IRouteBuilder, String, String, Func<HttpRequest,HttpResponse,RouteData,Task>)

來源:
RequestDelegateRouteBuilderExtensions.cs
來源:
RequestDelegateRouteBuilderExtensions.cs
來源:
RequestDelegateRouteBuilderExtensions.cs

將路由加入至 IRouteBuilder ,只符合指定 verbtemplatehandler 的 HTTP 要求。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapVerb(Microsoft::AspNetCore::Routing::IRouteBuilder ^ builder, System::String ^ verb, System::String ^ template, Func<Microsoft::AspNetCore::Http::HttpRequest ^, Microsoft::AspNetCore::Http::HttpResponse ^, Microsoft::AspNetCore::Routing::RouteData ^, System::Threading::Tasks::Task ^> ^ handler);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapVerb (this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string verb, string template, Func<Microsoft.AspNetCore.Http.HttpRequest,Microsoft.AspNetCore.Http.HttpResponse,Microsoft.AspNetCore.Routing.RouteData,System.Threading.Tasks.Task> handler);
static member MapVerb : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * Func<Microsoft.AspNetCore.Http.HttpRequest, Microsoft.AspNetCore.Http.HttpResponse, Microsoft.AspNetCore.Routing.RouteData, System.Threading.Tasks.Task> -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapVerb (builder As IRouteBuilder, verb As String, template As String, handler As Func(Of HttpRequest, HttpResponse, RouteData, Task)) As IRouteBuilder

參數

verb
String

路由所允許的 HTTP 動詞。

template
String

路由範本。

handler
Func<HttpRequest,HttpResponse,RouteData,Task>

路由處理常式。

傳回

此作業完成之後的 builder 參考。

適用於