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 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. |
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