Sdílet prostřednictvím


RequestDelegateRouteBuilderExtensions.MapMiddlewareVerb Metoda

Definice

Přidá do objektu IRouteBuilder trasu, která odpovídá pouze požadavkům HTTP pro dané verb, templatea action.

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

Parametry

builder
IRouteBuilder

Hodnota IRouteBuilder

verb
String

Příkaz HTTP povolený trasou

template
String

Šablona trasy.

action
Action<IApplicationBuilder>

Akce, která se má použít pro IApplicationBuilder.

Návraty

Odkaz na builder po dokončení této operace.

Platí pro