Freigeben über


UseMiddlewareExtensions.UseMiddleware Methode

Definition

Überlädt

UseMiddleware(IApplicationBuilder, Type, Object[])

Fügt der Anforderungspipeline der Anwendung einen Middlewaretyp hinzu.

UseMiddleware<TMiddleware>(IApplicationBuilder, Object[])

Fügt der Anforderungspipeline der Anwendung einen Middlewaretyp hinzu.

UseMiddleware(IApplicationBuilder, Type, Object[])

Quelle:
UseMiddlewareExtensions.cs
Quelle:
UseMiddlewareExtensions.cs
Quelle:
UseMiddlewareExtensions.cs

Fügt der Anforderungspipeline der Anwendung einen Middlewaretyp hinzu.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseMiddleware(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Type ^ middleware, ... cli::array <System::Object ^> ^ args);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMiddleware (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Type middleware, params object[] args);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMiddleware (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Type middleware, params object?[] args);
static member UseMiddleware : Microsoft.AspNetCore.Builder.IApplicationBuilder * Type * obj[] -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseMiddleware (app As IApplicationBuilder, middleware As Type, ParamArray args As Object()) As IApplicationBuilder

Parameter

middleware
Type

Der Middlewaretyp.

args
Object[]

Die Argumente, die an den Middlewaretyp instance Konstruktor übergeben werden sollen.

Gibt zurück

Die IApplicationBuilder-Instanz.

Gilt für:

UseMiddleware<TMiddleware>(IApplicationBuilder, Object[])

Quelle:
UseMiddlewareExtensions.cs
Quelle:
UseMiddlewareExtensions.cs
Quelle:
UseMiddlewareExtensions.cs

Fügt der Anforderungspipeline der Anwendung einen Middlewaretyp hinzu.

public:
generic <typename TMiddleware>
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseMiddleware(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, ... cli::array <System::Object ^> ^ args);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMiddleware<TMiddleware> (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, params object[] args);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMiddleware<TMiddleware> (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, params object?[] args);
static member UseMiddleware : Microsoft.AspNetCore.Builder.IApplicationBuilder * obj[] -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseMiddleware(Of TMiddleware) (app As IApplicationBuilder, ParamArray args As Object()) As IApplicationBuilder

Typparameter

TMiddleware

Der Middlewaretyp.

Parameter

args
Object[]

Die Argumente, die an den Middlewaretyp instance Konstruktor übergeben werden sollen.

Gibt zurück

Die IApplicationBuilder-Instanz.

Gilt für: