| title |
OpenUrlCommand Class |
| description |
The OpenUrlCommand class is used to represent a command that opens a URL in the default web browser. |
| ms.date |
2/25/2025 |
| ms.topic |
reference |
| no-loc |
PowerToys |
Windows |
Insider |
|
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.
| Constructor |
Description |
| OpenUrlCommand(String) |
Initializes a new instance of the OpenUrlCommand class with the specified URL. |
| Property |
Type |
Description |
| Result |
CommandResult |
Gets the result of the command. This property is used to indicate whether the command was successful or not. |
| Method |
Description |
| Invoke() |
Invokes the command. This method opens the specified URL in the default web browser. |