Edit

OpenUrlCommand Constructors

OpenUrlCommand(String) Constructor

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Initializes a new instance of the OpenUrlCommand class with the URL target set to target, its name set to Open, and an icon added.

public OpenUrlCommand(string target)
    {
        _target = target;
        Name = "Open";
        Icon = new IconInfo("\uE8A7");
    }

Parameters

target String

The URL to be opened by the command.