Freigeben über


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

Definition

Fügt die Middleware der Anwendungsanforderungspipeline hinzu.

public:
 virtual 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
override this.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>

Die Middleware.

Gibt zurück

Eine instance nach Abschluss des VorgangsIApplicationBuilder.

Implementiert

Gilt für: