Edit

OpenUrlCommand Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Inherits InvokableCommand

The OpenUrlCommand class is used to represent a command that opens a URL in the default web browser.

Constructors

Constructor Description
OpenUrlCommand(String) Initializes a new instance of the OpenUrlCommand class with the specified URL.

Properties

Property Type Description
Result CommandResult Gets the result of the command. This property is used to indicate whether the command was successful or not.

Methods

Method Description
Invoke() Invokes the command. This method opens the specified URL in the default web browser.