Edit

AnonymousCommand.Invoke() Method

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

The Invoke method executes the command associated with the AnonymousCommand instance. This method does not require any parameters and can be called directly to trigger the command's action.

Returns

An ICommandResult object that represents the result of the command execution. The result may contain information about the success or failure of the command, as well as any relevant data returned by the command's action.