Handler.SetHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetHandler(Command, Action)
- Source:
- Handler.Action.cs
Sets a command's handler based on an Action.
public:
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Action ^ handle);
public static void SetHandler(this System.CommandLine.Command command, Action handle);
static member SetHandler : System.CommandLine.Command * Action -> unit
<Extension()>
Public Sub SetHandler (command As Command, handle As Action)
Parameters
- command
- Command
- handle
- Action
Applies to
SetHandler(Command, Action<InvocationContext>)
- Source:
- Handler.Action.cs
Sets a command's handler based on an Action<T>.
public:
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Action<System::CommandLine::Invocation::InvocationContext ^> ^ handle);
public static void SetHandler(this System.CommandLine.Command command, Action<System.CommandLine.Invocation.InvocationContext> handle);
static member SetHandler : System.CommandLine.Command * Action<System.CommandLine.Invocation.InvocationContext> -> unit
<Extension()>
Public Sub SetHandler (command As Command, handle As Action(Of InvocationContext))
Parameters
- command
- Command
- handle
- Action<InvocationContext>
Applies to
SetHandler(Command, Func<InvocationContext,Task>)
- Source:
- Handler.Func.cs
Sets a command's handler based on a Func<T,TResult>.
public:
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Func<System::CommandLine::Invocation::InvocationContext ^, System::Threading::Tasks::Task ^> ^ handle);
public static void SetHandler(this System.CommandLine.Command command, Func<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task> handle);
static member SetHandler : System.CommandLine.Command * Func<System.CommandLine.Invocation.InvocationContext, System.Threading.Tasks.Task> -> unit
<Extension()>
Public Sub SetHandler (command As Command, handle As Func(Of InvocationContext, Task))
Parameters
- command
- Command
- handle
- Func<InvocationContext,Task>
Applies to
SetHandler(Command, Func<Task>)
- Source:
- Handler.Func.cs
Sets a command's handler based on a Func<TResult>.
public:
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Func<System::Threading::Tasks::Task ^> ^ handle);
public static void SetHandler(this System.CommandLine.Command command, Func<System.Threading.Tasks.Task> handle);
static member SetHandler : System.CommandLine.Command * Func<System.Threading.Tasks.Task> -> unit
<Extension()>
Public Sub SetHandler (command As Command, handle As Func(Of Task))
Parameters
- command
- Command
Applies to
SetHandler<T>(Command, Action<T>, IValueDescriptor<T>)
- Source:
- Handler.Action.cs
Sets a command's handler based on an Action<T>.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Action<T> ^ handle, System::CommandLine::Binding::IValueDescriptor<T> ^ symbol);
public static void SetHandler<T>(this System.CommandLine.Command command, Action<T> handle, System.CommandLine.Binding.IValueDescriptor<T> symbol);
static member SetHandler : System.CommandLine.Command * Action<'T> * System.CommandLine.Binding.IValueDescriptor<'T> -> unit
<Extension()>
Public Sub SetHandler(Of T) (command As Command, handle As Action(Of T), symbol As IValueDescriptor(Of T))
Type Parameters
- T
Parameters
- command
- Command
- handle
- Action<T>
- symbol
- IValueDescriptor<T>
Applies to
SetHandler<T>(Command, Func<T,Task>, IValueDescriptor<T>)
- Source:
- Handler.Func.cs
Sets a command's handler based on a Func<T,TResult>.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Func<T, System::Threading::Tasks::Task ^> ^ handle, System::CommandLine::Binding::IValueDescriptor<T> ^ symbol);
public static void SetHandler<T>(this System.CommandLine.Command command, Func<T,System.Threading.Tasks.Task> handle, System.CommandLine.Binding.IValueDescriptor<T> symbol);
static member SetHandler : System.CommandLine.Command * Func<'T, System.Threading.Tasks.Task> * System.CommandLine.Binding.IValueDescriptor<'T> -> unit
<Extension()>
Public Sub SetHandler(Of T) (command As Command, handle As Func(Of T, Task), symbol As IValueDescriptor(Of T))
Type Parameters
- T
Parameters
- command
- Command
- symbol
- IValueDescriptor<T>
Applies to
SetHandler<T1,T2,T3,T4,T5,T6,T7,T8>(Command, Action<T1,T2,T3, T4,T5,T6,T7,T8>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>, IValueDescriptor<T5>, IValueDescriptor<T6>, IValueDescriptor<T7>, IValueDescriptor<T8>)
- Source:
- Handler.Action.cs
Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8>.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Action<T1, T2, T3, T4, T5, T6, T7, T8> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3, System::CommandLine::Binding::IValueDescriptor<T4> ^ symbol4, System::CommandLine::Binding::IValueDescriptor<T5> ^ symbol5, System::CommandLine::Binding::IValueDescriptor<T6> ^ symbol6, System::CommandLine::Binding::IValueDescriptor<T7> ^ symbol7, System::CommandLine::Binding::IValueDescriptor<T8> ^ symbol8);
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6,T7,T8> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3, System.CommandLine.Binding.IValueDescriptor<T4> symbol4, System.CommandLine.Binding.IValueDescriptor<T5> symbol5, System.CommandLine.Binding.IValueDescriptor<T6> symbol6, System.CommandLine.Binding.IValueDescriptor<T7> symbol7, System.CommandLine.Binding.IValueDescriptor<T8> symbol8);
static member SetHandler : System.CommandLine.Command * Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> * System.CommandLine.Binding.IValueDescriptor<'T4> * System.CommandLine.Binding.IValueDescriptor<'T5> * System.CommandLine.Binding.IValueDescriptor<'T6> * System.CommandLine.Binding.IValueDescriptor<'T7> * System.CommandLine.Binding.IValueDescriptor<'T8> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3, T4, T5, T6, T7, T8) (command As Command, handle As Action(Of T1, T2, T3, T4, T5, T6, T7, T8), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3), symbol4 As IValueDescriptor(Of T4), symbol5 As IValueDescriptor(Of T5), symbol6 As IValueDescriptor(Of T6), symbol7 As IValueDescriptor(Of T7), symbol8 As IValueDescriptor(Of T8))
Type Parameters
- T1
- T2
- T3
- T4
- T5
- T6
- T7
- T8
Parameters
- command
- Command
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
- symbol4
- IValueDescriptor<T4>
- symbol5
- IValueDescriptor<T5>
- symbol6
- IValueDescriptor<T6>
- symbol7
- IValueDescriptor<T7>
- symbol8
- IValueDescriptor<T8>
Applies to
SetHandler<T1,T2,T3,T4,T5,T6,T7,T8>(Command, Func<T1,T2,T3,T4, T5,T6,T7,T8,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>, IValueDescriptor<T5>, IValueDescriptor<T6>, IValueDescriptor<T7>, IValueDescriptor<T8>)
- Source:
- Handler.Func.cs
Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult>.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Func<T1, T2, T3, T4, T5, T6, T7, T8, System::Threading::Tasks::Task ^> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3, System::CommandLine::Binding::IValueDescriptor<T4> ^ symbol4, System::CommandLine::Binding::IValueDescriptor<T5> ^ symbol5, System::CommandLine::Binding::IValueDescriptor<T6> ^ symbol6, System::CommandLine::Binding::IValueDescriptor<T7> ^ symbol7, System::CommandLine::Binding::IValueDescriptor<T8> ^ symbol8);
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,T6,T7,T8,System.Threading.Tasks.Task> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3, System.CommandLine.Binding.IValueDescriptor<T4> symbol4, System.CommandLine.Binding.IValueDescriptor<T5> symbol5, System.CommandLine.Binding.IValueDescriptor<T6> symbol6, System.CommandLine.Binding.IValueDescriptor<T7> symbol7, System.CommandLine.Binding.IValueDescriptor<T8> symbol8);
static member SetHandler : System.CommandLine.Command * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, System.Threading.Tasks.Task> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> * System.CommandLine.Binding.IValueDescriptor<'T4> * System.CommandLine.Binding.IValueDescriptor<'T5> * System.CommandLine.Binding.IValueDescriptor<'T6> * System.CommandLine.Binding.IValueDescriptor<'T7> * System.CommandLine.Binding.IValueDescriptor<'T8> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3, T4, T5, T6, T7, T8) (command As Command, handle As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, Task), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3), symbol4 As IValueDescriptor(Of T4), symbol5 As IValueDescriptor(Of T5), symbol6 As IValueDescriptor(Of T6), symbol7 As IValueDescriptor(Of T7), symbol8 As IValueDescriptor(Of T8))
Type Parameters
- T1
- T2
- T3
- T4
- T5
- T6
- T7
- T8
Parameters
- command
- Command
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
- symbol4
- IValueDescriptor<T4>
- symbol5
- IValueDescriptor<T5>
- symbol6
- IValueDescriptor<T6>
- symbol7
- IValueDescriptor<T7>
- symbol8
- IValueDescriptor<T8>
Applies to
SetHandler<T1,T2,T3,T4,T5,T6,T7>(Command, Action<T1,T2,T3,T4, T5,T6,T7>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>, IValueDescriptor<T5>, IValueDescriptor<T6>, IValueDescriptor<T7>)
- Source:
- Handler.Action.cs
Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7>.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Action<T1, T2, T3, T4, T5, T6, T7> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3, System::CommandLine::Binding::IValueDescriptor<T4> ^ symbol4, System::CommandLine::Binding::IValueDescriptor<T5> ^ symbol5, System::CommandLine::Binding::IValueDescriptor<T6> ^ symbol6, System::CommandLine::Binding::IValueDescriptor<T7> ^ symbol7);
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6,T7> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3, System.CommandLine.Binding.IValueDescriptor<T4> symbol4, System.CommandLine.Binding.IValueDescriptor<T5> symbol5, System.CommandLine.Binding.IValueDescriptor<T6> symbol6, System.CommandLine.Binding.IValueDescriptor<T7> symbol7);
static member SetHandler : System.CommandLine.Command * Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> * System.CommandLine.Binding.IValueDescriptor<'T4> * System.CommandLine.Binding.IValueDescriptor<'T5> * System.CommandLine.Binding.IValueDescriptor<'T6> * System.CommandLine.Binding.IValueDescriptor<'T7> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3, T4, T5, T6, T7) (command As Command, handle As Action(Of T1, T2, T3, T4, T5, T6, T7), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3), symbol4 As IValueDescriptor(Of T4), symbol5 As IValueDescriptor(Of T5), symbol6 As IValueDescriptor(Of T6), symbol7 As IValueDescriptor(Of T7))
Type Parameters
- T1
- T2
- T3
- T4
- T5
- T6
- T7
Parameters
- command
- Command
- handle
- Action<T1,T2,T3,T4,T5,T6,T7>
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
- symbol4
- IValueDescriptor<T4>
- symbol5
- IValueDescriptor<T5>
- symbol6
- IValueDescriptor<T6>
- symbol7
- IValueDescriptor<T7>
Applies to
SetHandler<T1,T2,T3,T4,T5,T6,T7>(Command, Func<T1,T2,T3,T4,T5, T6,T7,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>, IValueDescriptor<T5>, IValueDescriptor<T6>, IValueDescriptor<T7>)
- Source:
- Handler.Func.cs
Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,TResult>.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Func<T1, T2, T3, T4, T5, T6, T7, System::Threading::Tasks::Task ^> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3, System::CommandLine::Binding::IValueDescriptor<T4> ^ symbol4, System::CommandLine::Binding::IValueDescriptor<T5> ^ symbol5, System::CommandLine::Binding::IValueDescriptor<T6> ^ symbol6, System::CommandLine::Binding::IValueDescriptor<T7> ^ symbol7);
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,T6,T7,System.Threading.Tasks.Task> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3, System.CommandLine.Binding.IValueDescriptor<T4> symbol4, System.CommandLine.Binding.IValueDescriptor<T5> symbol5, System.CommandLine.Binding.IValueDescriptor<T6> symbol6, System.CommandLine.Binding.IValueDescriptor<T7> symbol7);
static member SetHandler : System.CommandLine.Command * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, System.Threading.Tasks.Task> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> * System.CommandLine.Binding.IValueDescriptor<'T4> * System.CommandLine.Binding.IValueDescriptor<'T5> * System.CommandLine.Binding.IValueDescriptor<'T6> * System.CommandLine.Binding.IValueDescriptor<'T7> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3, T4, T5, T6, T7) (command As Command, handle As Func(Of T1, T2, T3, T4, T5, T6, T7, Task), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3), symbol4 As IValueDescriptor(Of T4), symbol5 As IValueDescriptor(Of T5), symbol6 As IValueDescriptor(Of T6), symbol7 As IValueDescriptor(Of T7))
Type Parameters
- T1
- T2
- T3
- T4
- T5
- T6
- T7
Parameters
- command
- Command
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
- symbol4
- IValueDescriptor<T4>
- symbol5
- IValueDescriptor<T5>
- symbol6
- IValueDescriptor<T6>
- symbol7
- IValueDescriptor<T7>
Applies to
SetHandler<T1,T2,T3,T4,T5,T6>(Command, Action<T1,T2,T3,T4,T5, T6>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>, IValueDescriptor<T5>, IValueDescriptor<T6>)
- Source:
- Handler.Action.cs
Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6>.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Action<T1, T2, T3, T4, T5, T6> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3, System::CommandLine::Binding::IValueDescriptor<T4> ^ symbol4, System::CommandLine::Binding::IValueDescriptor<T5> ^ symbol5, System::CommandLine::Binding::IValueDescriptor<T6> ^ symbol6);
public static void SetHandler<T1,T2,T3,T4,T5,T6>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3, System.CommandLine.Binding.IValueDescriptor<T4> symbol4, System.CommandLine.Binding.IValueDescriptor<T5> symbol5, System.CommandLine.Binding.IValueDescriptor<T6> symbol6);
static member SetHandler : System.CommandLine.Command * Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> * System.CommandLine.Binding.IValueDescriptor<'T4> * System.CommandLine.Binding.IValueDescriptor<'T5> * System.CommandLine.Binding.IValueDescriptor<'T6> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3, T4, T5, T6) (command As Command, handle As Action(Of T1, T2, T3, T4, T5, T6), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3), symbol4 As IValueDescriptor(Of T4), symbol5 As IValueDescriptor(Of T5), symbol6 As IValueDescriptor(Of T6))
Type Parameters
- T1
- T2
- T3
- T4
- T5
- T6
Parameters
- command
- Command
- handle
- Action<T1,T2,T3,T4,T5,T6>
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
- symbol4
- IValueDescriptor<T4>
- symbol5
- IValueDescriptor<T5>
- symbol6
- IValueDescriptor<T6>
Applies to
SetHandler<T1,T2,T3,T4,T5,T6>(Command, Func<T1,T2,T3,T4,T5,T6, Task>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>, IValueDescriptor<T5>, IValueDescriptor<T6>)
- Source:
- Handler.Func.cs
Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,TResult>.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Func<T1, T2, T3, T4, T5, T6, System::Threading::Tasks::Task ^> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3, System::CommandLine::Binding::IValueDescriptor<T4> ^ symbol4, System::CommandLine::Binding::IValueDescriptor<T5> ^ symbol5, System::CommandLine::Binding::IValueDescriptor<T6> ^ symbol6);
public static void SetHandler<T1,T2,T3,T4,T5,T6>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,T6,System.Threading.Tasks.Task> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3, System.CommandLine.Binding.IValueDescriptor<T4> symbol4, System.CommandLine.Binding.IValueDescriptor<T5> symbol5, System.CommandLine.Binding.IValueDescriptor<T6> symbol6);
static member SetHandler : System.CommandLine.Command * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, System.Threading.Tasks.Task> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> * System.CommandLine.Binding.IValueDescriptor<'T4> * System.CommandLine.Binding.IValueDescriptor<'T5> * System.CommandLine.Binding.IValueDescriptor<'T6> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3, T4, T5, T6) (command As Command, handle As Func(Of T1, T2, T3, T4, T5, T6, Task), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3), symbol4 As IValueDescriptor(Of T4), symbol5 As IValueDescriptor(Of T5), symbol6 As IValueDescriptor(Of T6))
Type Parameters
- T1
- T2
- T3
- T4
- T5
- T6
Parameters
- command
- Command
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
- symbol4
- IValueDescriptor<T4>
- symbol5
- IValueDescriptor<T5>
- symbol6
- IValueDescriptor<T6>
Applies to
SetHandler<T1,T2,T3,T4,T5>(Command, Action<T1,T2,T3,T4,T5>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>, IValueDescriptor<T5>)
- Source:
- Handler.Action.cs
Sets a command's handler based on an Action<T1,T2,T3,T4,T5>.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Action<T1, T2, T3, T4, T5> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3, System::CommandLine::Binding::IValueDescriptor<T4> ^ symbol4, System::CommandLine::Binding::IValueDescriptor<T5> ^ symbol5);
public static void SetHandler<T1,T2,T3,T4,T5>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3, System.CommandLine.Binding.IValueDescriptor<T4> symbol4, System.CommandLine.Binding.IValueDescriptor<T5> symbol5);
static member SetHandler : System.CommandLine.Command * Action<'T1, 'T2, 'T3, 'T4, 'T5> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> * System.CommandLine.Binding.IValueDescriptor<'T4> * System.CommandLine.Binding.IValueDescriptor<'T5> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3, T4, T5) (command As Command, handle As Action(Of T1, T2, T3, T4, T5), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3), symbol4 As IValueDescriptor(Of T4), symbol5 As IValueDescriptor(Of T5))
Type Parameters
- T1
- T2
- T3
- T4
- T5
Parameters
- command
- Command
- handle
- Action<T1,T2,T3,T4,T5>
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
- symbol4
- IValueDescriptor<T4>
- symbol5
- IValueDescriptor<T5>
Applies to
SetHandler<T1,T2,T3,T4,T5>(Command, Func<T1,T2,T3,T4,T5,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>, IValueDescriptor<T5>)
- Source:
- Handler.Func.cs
Sets a command's handler based on a Func<T1,T2,T3,T4,T5,TResult>.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Func<T1, T2, T3, T4, T5, System::Threading::Tasks::Task ^> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3, System::CommandLine::Binding::IValueDescriptor<T4> ^ symbol4, System::CommandLine::Binding::IValueDescriptor<T5> ^ symbol5);
public static void SetHandler<T1,T2,T3,T4,T5>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,System.Threading.Tasks.Task> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3, System.CommandLine.Binding.IValueDescriptor<T4> symbol4, System.CommandLine.Binding.IValueDescriptor<T5> symbol5);
static member SetHandler : System.CommandLine.Command * Func<'T1, 'T2, 'T3, 'T4, 'T5, System.Threading.Tasks.Task> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> * System.CommandLine.Binding.IValueDescriptor<'T4> * System.CommandLine.Binding.IValueDescriptor<'T5> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3, T4, T5) (command As Command, handle As Func(Of T1, T2, T3, T4, T5, Task), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3), symbol4 As IValueDescriptor(Of T4), symbol5 As IValueDescriptor(Of T5))
Type Parameters
- T1
- T2
- T3
- T4
- T5
Parameters
- command
- Command
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
- symbol4
- IValueDescriptor<T4>
- symbol5
- IValueDescriptor<T5>
Applies to
SetHandler<T1,T2,T3,T4>(Command, Action<T1,T2,T3,T4>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>)
- Source:
- Handler.Action.cs
Sets a command's handler based on an Action<T1,T2,T3,T4>.
public:
generic <typename T1, typename T2, typename T3, typename T4>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Action<T1, T2, T3, T4> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3, System::CommandLine::Binding::IValueDescriptor<T4> ^ symbol4);
public static void SetHandler<T1,T2,T3,T4>(this System.CommandLine.Command command, Action<T1,T2,T3,T4> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3, System.CommandLine.Binding.IValueDescriptor<T4> symbol4);
static member SetHandler : System.CommandLine.Command * Action<'T1, 'T2, 'T3, 'T4> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> * System.CommandLine.Binding.IValueDescriptor<'T4> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3, T4) (command As Command, handle As Action(Of T1, T2, T3, T4), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3), symbol4 As IValueDescriptor(Of T4))
Type Parameters
- T1
- T2
- T3
- T4
Parameters
- command
- Command
- handle
- Action<T1,T2,T3,T4>
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
- symbol4
- IValueDescriptor<T4>
Applies to
SetHandler<T1,T2,T3,T4>(Command, Func<T1,T2,T3,T4,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>)
- Source:
- Handler.Func.cs
Sets a command's handler based on a Func<T1,T2,T3,T4,TResult>.
public:
generic <typename T1, typename T2, typename T3, typename T4>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Func<T1, T2, T3, T4, System::Threading::Tasks::Task ^> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3, System::CommandLine::Binding::IValueDescriptor<T4> ^ symbol4);
public static void SetHandler<T1,T2,T3,T4>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,System.Threading.Tasks.Task> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3, System.CommandLine.Binding.IValueDescriptor<T4> symbol4);
static member SetHandler : System.CommandLine.Command * Func<'T1, 'T2, 'T3, 'T4, System.Threading.Tasks.Task> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> * System.CommandLine.Binding.IValueDescriptor<'T4> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3, T4) (command As Command, handle As Func(Of T1, T2, T3, T4, Task), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3), symbol4 As IValueDescriptor(Of T4))
Type Parameters
- T1
- T2
- T3
- T4
Parameters
- command
- Command
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
- symbol4
- IValueDescriptor<T4>
Applies to
SetHandler<T1,T2,T3>(Command, Action<T1,T2,T3>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>)
- Source:
- Handler.Action.cs
Sets a command's handler based on an Action<T1,T2,T3>.
public:
generic <typename T1, typename T2, typename T3>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Action<T1, T2, T3> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3);
public static void SetHandler<T1,T2,T3>(this System.CommandLine.Command command, Action<T1,T2,T3> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3);
static member SetHandler : System.CommandLine.Command * Action<'T1, 'T2, 'T3> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3) (command As Command, handle As Action(Of T1, T2, T3), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3))
Type Parameters
- T1
- T2
- T3
Parameters
- command
- Command
- handle
- Action<T1,T2,T3>
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
Applies to
SetHandler<T1,T2,T3>(Command, Func<T1,T2,T3,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>)
- Source:
- Handler.Func.cs
Sets a command's handler based on a Func<T1,T2,T3,TResult>.
public:
generic <typename T1, typename T2, typename T3>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Func<T1, T2, T3, System::Threading::Tasks::Task ^> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2, System::CommandLine::Binding::IValueDescriptor<T3> ^ symbol3);
public static void SetHandler<T1,T2,T3>(this System.CommandLine.Command command, Func<T1,T2,T3,System.Threading.Tasks.Task> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2, System.CommandLine.Binding.IValueDescriptor<T3> symbol3);
static member SetHandler : System.CommandLine.Command * Func<'T1, 'T2, 'T3, System.Threading.Tasks.Task> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> * System.CommandLine.Binding.IValueDescriptor<'T3> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2, T3) (command As Command, handle As Func(Of T1, T2, T3, Task), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2), symbol3 As IValueDescriptor(Of T3))
Type Parameters
- T1
- T2
- T3
Parameters
- command
- Command
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
- symbol3
- IValueDescriptor<T3>
Applies to
SetHandler<T1,T2>(Command, Action<T1,T2>, IValueDescriptor<T1>, IValueDescriptor<T2>)
- Source:
- Handler.Action.cs
Sets a command's handler based on an Action<T1,T2>.
public:
generic <typename T1, typename T2>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Action<T1, T2> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2);
public static void SetHandler<T1,T2>(this System.CommandLine.Command command, Action<T1,T2> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2);
static member SetHandler : System.CommandLine.Command * Action<'T1, 'T2> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2) (command As Command, handle As Action(Of T1, T2), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2))
Type Parameters
- T1
- T2
Parameters
- command
- Command
- handle
- Action<T1,T2>
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>
Applies to
SetHandler<T1,T2>(Command, Func<T1,T2,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>)
- Source:
- Handler.Func.cs
Sets a command's handler based on a Func<T1,T2,TResult>.
public:
generic <typename T1, typename T2>
[System::Runtime::CompilerServices::Extension]
static void SetHandler(System::CommandLine::Command ^ command, Func<T1, T2, System::Threading::Tasks::Task ^> ^ handle, System::CommandLine::Binding::IValueDescriptor<T1> ^ symbol1, System::CommandLine::Binding::IValueDescriptor<T2> ^ symbol2);
public static void SetHandler<T1,T2>(this System.CommandLine.Command command, Func<T1,T2,System.Threading.Tasks.Task> handle, System.CommandLine.Binding.IValueDescriptor<T1> symbol1, System.CommandLine.Binding.IValueDescriptor<T2> symbol2);
static member SetHandler : System.CommandLine.Command * Func<'T1, 'T2, System.Threading.Tasks.Task> * System.CommandLine.Binding.IValueDescriptor<'T1> * System.CommandLine.Binding.IValueDescriptor<'T2> -> unit
<Extension()>
Public Sub SetHandler(Of T1, T2) (command As Command, handle As Func(Of T1, T2, Task), symbol1 As IValueDescriptor(Of T1), symbol2 As IValueDescriptor(Of T2))
Type Parameters
- T1
- T2
Parameters
- command
- Command
- symbol1
- IValueDescriptor<T1>
- symbol2
- IValueDescriptor<T2>