Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows developer