InvocationExtensions.UseMiddleware Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| UseMiddleware(CommandLineBuilder, Action<InvocationContext>) | |
| UseMiddleware(CommandLineBuilder, InvocationMiddleware) |
UseMiddleware(CommandLineBuilder, Action<InvocationContext>)
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Builder::CommandLineBuilder ^ UseMiddleware(System::CommandLine::Builder::CommandLineBuilder ^ builder, Action<System::CommandLine::Invocation::InvocationContext ^> ^ onInvoke);
public static System.CommandLine.Builder.CommandLineBuilder UseMiddleware(this System.CommandLine.Builder.CommandLineBuilder builder, Action<System.CommandLine.Invocation.InvocationContext> onInvoke);
static member UseMiddleware : System.CommandLine.Builder.CommandLineBuilder * Action<System.CommandLine.Invocation.InvocationContext> -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseMiddleware (builder As CommandLineBuilder, onInvoke As Action(Of InvocationContext)) As CommandLineBuilder
Paramètres
- builder
- CommandLineBuilder
- onInvoke
- Action<InvocationContext>
Retours
S’applique à
UseMiddleware(CommandLineBuilder, InvocationMiddleware)
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Builder::CommandLineBuilder ^ UseMiddleware(System::CommandLine::Builder::CommandLineBuilder ^ builder, System::CommandLine::Invocation::InvocationMiddleware ^ middleware);
public static System.CommandLine.Builder.CommandLineBuilder UseMiddleware(this System.CommandLine.Builder.CommandLineBuilder builder, System.CommandLine.Invocation.InvocationMiddleware middleware);
static member UseMiddleware : System.CommandLine.Builder.CommandLineBuilder * System.CommandLine.Invocation.InvocationMiddleware -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseMiddleware (builder As CommandLineBuilder, middleware As InvocationMiddleware) As CommandLineBuilder
Paramètres
- builder
- CommandLineBuilder
- middleware
- InvocationMiddleware