Share via


ShellExtensibility.ShowSaveAsFileDialogAsync Method

Definition

Shows the file dialog to select a filename for saving.

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

Parameters

options
FileDialogOptions

The file dialog options.

cancellationToken
CancellationToken

The cancellation token.

Returns

The string representing the file path of the file to save. This is null if the user cancelled the dialog or there was an error.

Applies to