Freigeben über


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

Definition

Fügt der Anforderungspipeline der Anwendung einen Middlewaredelegat 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 Middlewaredelegat.

Gibt zurück

Die IApplicationBuilder.

Gilt für: