IApplicationBuilder.Use(Func<RequestDelegate,RequestDelegate>) Methode

Definition

Fügt der Anforderungspipeline der Anwendung einen Middleware-Delegaten hinzu.

public:
 Microsoft::AspNetCore::Builder::IApplicationBuilder ^ Use(Func<Microsoft::AspNetCore::Http::RequestDelegate ^, Microsoft::AspNetCore::Http::RequestDelegate ^> ^ middleware);
public Microsoft.AspNetCore.Builder.IApplicationBuilder Use (Func<Microsoft.AspNetCore.Http.RequestDelegate,Microsoft.AspNetCore.Http.RequestDelegate> middleware);
abstract member Use : Func<Microsoft.AspNetCore.Http.RequestDelegate, Microsoft.AspNetCore.Http.RequestDelegate> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
Public Function Use (middleware As Func(Of RequestDelegate, RequestDelegate)) As IApplicationBuilder

Parameter

middleware
Func<RequestDelegate,RequestDelegate>

Der Middleware-Delegat.

Gibt zurück

IApplicationBuilder

Die IApplicationBuilder.

Gilt für