ShellExtensibility.ShowOpenFolderDialogAsync Method

Definition

Shows the folder dialog to select a directory.

public System.Threading.Tasks.Task<string?> ShowOpenFolderDialogAsync (Microsoft.VisualStudio.Extensibility.Shell.FileDialog.FolderDialogOptions options, System.Threading.CancellationToken cancellationToken);
member this.ShowOpenFolderDialogAsync : Microsoft.VisualStudio.Extensibility.Shell.FileDialog.FolderDialogOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function ShowOpenFolderDialogAsync (options As FolderDialogOptions, cancellationToken As CancellationToken) As Task(Of String)

Parameters

options
FolderDialogOptions

The folder dialog options.

cancellationToken
CancellationToken

The cancellation token.

Returns

The string representing the directory path of the selected directory. This is null if the user cancelled the dialog or there was an error.

Applies to