Edit

AnonymousCommand Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Inherits InvokableCommand

The AnonymousCommand class is a command that can be invoked without being associated with a specific command palette item. It is typically used for commands that do not require any parameters or additional context.

Constructors

Constructor Description
AnonymousCommand(Action) Initializes a new instance of the AnonymousCommand class with the specified action.

Properties

Property Type Description
Result ICommandResult Gets the result of the command execution.

Methods

Method Description
Invoke() Invokes the command.