Edit

Share via


CommandResult.GoToPage(GoToPageArgs) Method

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Navigate to a different page in the palette. The GoToPageArgs will specify which page to navigate to.

Creates a new CommandResult instance with its Kind property set to CommandResultKind.GoToPage and its Args set to args.

Parameters

args GoToPageArgs

The arguments for the command. This should be an instance of GoToPageArgs that specifies the page to navigate to.

Returns

A CommandResult instance.

Example

See Command Results for an example of how to use this.