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.
AnonymousCommand(Action) Constructor
Definition
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Initializes a new instance of the AnonymousCommand class with an action parameter.
public AnonymousCommand(Action? action)
{
Name = "Invoke";
_action = action;
}
Parameters
action Action
The action to be executed when the command is invoked. This parameter is optional and can be null.
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