Handler.SetHandler Method

Definition

Overloads

SetHandler(Command, Action)

Sets a command's handler based on an Action.

SetHandler(Command, Action<InvocationContext>)
SetHandler(Command, Func<InvocationContext,Task>)
SetHandler(Command, Func<Task>)

Sets a command's handler based on a Func<TResult>.

SetHandler<T>(Command, Action<T>, IValueDescriptor[])

Sets a command's handler based on an Action<T>.

SetHandler<T>(Command, Action<T>, IValueDescriptor<T>)
SetHandler<T>(Command, Func<T,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T,TResult>.

SetHandler<T>(Command, Func<T,Task>, IValueDescriptor<T>)
SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13, T14,T15,T16>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13, T14,T15,T16,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,TResult>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,TResult>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,TResult>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,TResult>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,TResult>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,TResult>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9>.

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8>.

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>)
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>)
SetHandler<T1,T2,T3,T4,T5,T6,T7,T8>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult>.

SetHandler<T1,T2,T3,T4,T5,T6,T7>(Command, Func<T1,T2,T3,T4,T5,T6,T7,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,TResult>.

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>)
SetHandler<T1,T2,T3,T4,T5,T6,T7>(Command, Action<T1,T2,T3,T4,T5,T6,T7>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7>.

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>)
SetHandler<T1,T2,T3,T4,T5,T6>(Command, Func<T1,T2,T3,T4,T5,T6,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,TResult>.

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>)
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>)
SetHandler<T1,T2,T3,T4,T5,T6>(Command, Action<T1,T2,T3,T4,T5,T6>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6>.

SetHandler<T1,T2,T3,T4,T5>(Command, Func<T1,T2,T3,T4,T5,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>, IValueDescriptor<T5>)
SetHandler<T1,T2,T3,T4,T5>(Command, Action<T1,T2,T3,T4,T5>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>, IValueDescriptor<T5>)
SetHandler<T1,T2,T3,T4,T5>(Command, Func<T1,T2,T3,T4,T5,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,TResult>.

SetHandler<T1,T2,T3,T4,T5>(Command, Action<T1,T2,T3,T4,T5>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5>.

SetHandler<T1,T2,T3,T4>(Command, Action<T1,T2,T3,T4>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4>.

SetHandler<T1,T2,T3,T4>(Command, Func<T1,T2,T3,T4,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,TResult>.

SetHandler<T1,T2,T3,T4>(Command, Action<T1,T2,T3,T4>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>)
SetHandler<T1,T2,T3,T4>(Command, Func<T1,T2,T3,T4,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>)
SetHandler<T1,T2,T3>(Command, Func<T1,T2,T3,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>)
SetHandler<T1,T2,T3>(Command, Action<T1,T2,T3>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>)
SetHandler<T1,T2,T3>(Command, Func<T1,T2,T3,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,TResult>.

SetHandler<T1,T2,T3>(Command, Action<T1,T2,T3>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3>.

SetHandler<T1,T2>(Command, Action<T1,T2>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2>.

SetHandler<T1,T2>(Command, Func<T1,T2,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>)
SetHandler<T1,T2>(Command, Func<T1,T2,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,TResult>.

SetHandler<T1,T2>(Command, Action<T1,T2>, IValueDescriptor<T1>, IValueDescriptor<T2>)

SetHandler(Command, Action)

Source:
Handler.Action.cs

Sets a command's handler based on an Action.

C#
public static void SetHandler(this System.CommandLine.Command command, Action handle);

Parameters

command
Command
handle
Action

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler(Command, Action<InvocationContext>)

Source:
Handler.Action.cs
C#
public static void SetHandler(this System.CommandLine.Command command, Action<System.CommandLine.Invocation.InvocationContext> handle);

Parameters

command
Command

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler(Command, Func<InvocationContext,Task>)

Source:
Handler.Func.cs
C#
public static void SetHandler(this System.CommandLine.Command command, Func<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task> handle);

Parameters

command
Command

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler(Command, Func<Task>)

Source:
Handler.Func.cs

Sets a command's handler based on a Func<TResult>.

C#
public static void SetHandler(this System.CommandLine.Command command, Func<System.Threading.Tasks.Task> handle);

Parameters

command
Command
handle
Func<Task>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T>(Command, Action<T>, IValueDescriptor[])

Sets a command's handler based on an Action<T>.

C#
public static void SetHandler<T>(this System.CommandLine.Command command, Action<T> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T

Parameters

command
Command
handle
Action<T>
symbols
IValueDescriptor[]

Applies to

SetHandler<T>(Command, Action<T>, IValueDescriptor<T>)

Source:
Handler.Action.cs
C#
public static void SetHandler<T>(this System.CommandLine.Command command, Action<T> handle, System.CommandLine.Binding.IValueDescriptor<T> symbol);

Type Parameters

T

Parameters

command
Command
handle
Action<T>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T>(Command, Func<T,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T,TResult>.

C#
public static void SetHandler<T>(this System.CommandLine.Command command, Func<T,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T

Parameters

command
Command
handle
Func<T,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T>(Command, Func<T,Task>, IValueDescriptor<T>)

Source:
Handler.Func.cs
C#
public static void SetHandler<T>(this System.CommandLine.Command command, Func<T,System.Threading.Tasks.Task> handle, System.CommandLine.Binding.IValueDescriptor<T> symbol);

Type Parameters

T

Parameters

command
Command
handle
Func<T,Task>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13, T14,T15,T16>, IValueDescriptor[])

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16

Parameters

command
Command
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13, T14,T15,T16,Task>, IValueDescriptor[])

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,Task>, IValueDescriptor[])

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15

Parameters

command
Command
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,Task>, IValueDescriptor[])

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14

Parameters

command
Command
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,TResult>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13

Parameters

command
Command
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,TResult>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12

Parameters

command
Command
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11

Parameters

command
Command
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,TResult>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10

Parameters

command
Command
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8,T9>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6,T7,T8,T9>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6,T7,T8,T9> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9

Parameters

command
Command
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8>(Command, Action<T1,T2,T3,T4,T5,T6,T7,T8>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7,T8>.

C#
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, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8

Parameters

command
Command
symbols
IValueDescriptor[]

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
C#
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);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,T8,Task>
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

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

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
C#
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);

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

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T1,T2,T3,T4,T5,T6,T7,T8>(Command, Func<T1,T2,T3,T4,T5,T6,T7,T8,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult>.

C#
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, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,T8,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5,T6,T7>(Command, Func<T1,T2,T3,T4,T5,T6,T7,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,T7,TResult>.

C#
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, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,Task>
symbols
IValueDescriptor[]

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
C#
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);

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

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T1,T2,T3,T4,T5,T6,T7>(Command, Action<T1,T2,T3,T4,T5,T6,T7>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6,T7>.

C#
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, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6
T7

Parameters

command
Command
symbols
IValueDescriptor[]

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
C#
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);

Type Parameters

T1
T2
T3
T4
T5
T6
T7

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,T7,Task>
symbol1
IValueDescriptor<T1>
symbol2
IValueDescriptor<T2>
symbol3
IValueDescriptor<T3>
symbol4
IValueDescriptor<T4>
symbol5
IValueDescriptor<T5>
symbol6
IValueDescriptor<T6>
symbol7
IValueDescriptor<T7>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T1,T2,T3,T4,T5,T6>(Command, Func<T1,T2,T3,T4,T5,T6,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,T6,TResult>.

C#
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, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,Task>
symbols
IValueDescriptor[]

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
C#
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);

Type Parameters

T1
T2
T3
T4
T5
T6

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,T6,Task>
symbol1
IValueDescriptor<T1>
symbol2
IValueDescriptor<T2>
symbol3
IValueDescriptor<T3>
symbol4
IValueDescriptor<T4>
symbol5
IValueDescriptor<T5>
symbol6
IValueDescriptor<T6>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

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
C#
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);

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

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T1,T2,T3,T4,T5,T6>(Command, Action<T1,T2,T3,T4,T5,T6>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5,T6>.

C#
public static void SetHandler<T1,T2,T3,T4,T5,T6>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5,T6> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5
T6

Parameters

command
Command
symbols
IValueDescriptor[]

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
C#
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);

Type Parameters

T1
T2
T3
T4
T5

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,Task>
symbol1
IValueDescriptor<T1>
symbol2
IValueDescriptor<T2>
symbol3
IValueDescriptor<T3>
symbol4
IValueDescriptor<T4>
symbol5
IValueDescriptor<T5>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

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
C#
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);

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

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T1,T2,T3,T4,T5>(Command, Func<T1,T2,T3,T4,T5,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,T5,TResult>.

C#
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, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5

Parameters

command
Command
handle
Func<T1,T2,T3,T4,T5,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4,T5>(Command, Action<T1,T2,T3,T4,T5>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4,T5>.

C#
public static void SetHandler<T1,T2,T3,T4,T5>(this System.CommandLine.Command command, Action<T1,T2,T3,T4,T5> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4
T5

Parameters

command
Command
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4>(Command, Action<T1,T2,T3,T4>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3,T4>.

C#
public static void SetHandler<T1,T2,T3,T4>(this System.CommandLine.Command command, Action<T1,T2,T3,T4> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4

Parameters

command
Command
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3,T4>(Command, Func<T1,T2,T3,T4,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,T4,TResult>.

C#
public static void SetHandler<T1,T2,T3,T4>(this System.CommandLine.Command command, Func<T1,T2,T3,T4,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3
T4

Parameters

command
Command
handle
Func<T1,T2,T3,T4,Task>
symbols
IValueDescriptor[]

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
C#
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);

Type Parameters

T1
T2
T3
T4

Parameters

command
Command
symbol1
IValueDescriptor<T1>
symbol2
IValueDescriptor<T2>
symbol3
IValueDescriptor<T3>
symbol4
IValueDescriptor<T4>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T1,T2,T3,T4>(Command, Func<T1,T2,T3,T4,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>, IValueDescriptor<T4>)

Source:
Handler.Func.cs
C#
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);

Type Parameters

T1
T2
T3
T4

Parameters

command
Command
handle
Func<T1,T2,T3,T4,Task>
symbol1
IValueDescriptor<T1>
symbol2
IValueDescriptor<T2>
symbol3
IValueDescriptor<T3>
symbol4
IValueDescriptor<T4>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T1,T2,T3>(Command, Func<T1,T2,T3,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>)

Source:
Handler.Func.cs
C#
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);

Type Parameters

T1
T2
T3

Parameters

command
Command
handle
Func<T1,T2,T3,Task>
symbol1
IValueDescriptor<T1>
symbol2
IValueDescriptor<T2>
symbol3
IValueDescriptor<T3>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T1,T2,T3>(Command, Action<T1,T2,T3>, IValueDescriptor<T1>, IValueDescriptor<T2>, IValueDescriptor<T3>)

Source:
Handler.Action.cs
C#
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);

Type Parameters

T1
T2
T3

Parameters

command
Command
symbol1
IValueDescriptor<T1>
symbol2
IValueDescriptor<T2>
symbol3
IValueDescriptor<T3>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T1,T2,T3>(Command, Func<T1,T2,T3,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,T3,TResult>.

C#
public static void SetHandler<T1,T2,T3>(this System.CommandLine.Command command, Func<T1,T2,T3,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3

Parameters

command
Command
handle
Func<T1,T2,T3,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2,T3>(Command, Action<T1,T2,T3>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2,T3>.

C#
public static void SetHandler<T1,T2,T3>(this System.CommandLine.Command command, Action<T1,T2,T3> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2
T3

Parameters

command
Command
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2>(Command, Action<T1,T2>, IValueDescriptor[])

Sets a command's handler based on an Action<T1,T2>.

C#
public static void SetHandler<T1,T2>(this System.CommandLine.Command command, Action<T1,T2> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2

Parameters

command
Command
handle
Action<T1,T2>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2>(Command, Func<T1,T2,Task>, IValueDescriptor<T1>, IValueDescriptor<T2>)

Source:
Handler.Func.cs
C#
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);

Type Parameters

T1
T2

Parameters

command
Command
handle
Func<T1,T2,Task>
symbol1
IValueDescriptor<T1>
symbol2
IValueDescriptor<T2>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

SetHandler<T1,T2>(Command, Func<T1,T2,Task>, IValueDescriptor[])

Sets a command's handler based on a Func<T1,T2,TResult>.

C#
public static void SetHandler<T1,T2>(this System.CommandLine.Command command, Func<T1,T2,System.Threading.Tasks.Task> handle, params System.CommandLine.Binding.IValueDescriptor[] symbols);

Type Parameters

T1
T2

Parameters

command
Command
handle
Func<T1,T2,Task>
symbols
IValueDescriptor[]

Applies to

SetHandler<T1,T2>(Command, Action<T1,T2>, IValueDescriptor<T1>, IValueDescriptor<T2>)

Source:
Handler.Action.cs
C#
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);

Type Parameters

T1
T2

Parameters

command
Command
handle
Action<T1,T2>
symbol1
IValueDescriptor<T1>
symbol2
IValueDescriptor<T2>

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)