ShellExtensibility.ShowOpenFolderDialogAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.