Edit

Share via


ICommandHandler.Invoke(InvocationContext) Method

Definition

Performs an action when the associated command is invoked on the command line.

public:
 int Invoke(System::CommandLine::Invocation::InvocationContext ^ context);
public int Invoke(System.CommandLine.Invocation.InvocationContext context);
abstract member Invoke : System.CommandLine.Invocation.InvocationContext -> int
Public Function Invoke (context As InvocationContext) As Integer

Parameters

context
InvocationContext

Provides context for the invocation, including parse results and binding support.

Returns

A value that can be used as the exit code for the process.

Applies to