Share via


VsShellUtilities.SelectSaveAsFile Method

Definition

Selects a file using the dialog to save.

public static string SelectSaveAsFile (Microsoft.VisualStudio.Shell.Interop.IVsUIShell2 vsUIShell, IntPtr handle, string title, string initialDirectory, string initialFileName, Microsoft.VisualStudio.Shell.FileDialog.DialogFilters filters);
static member SelectSaveAsFile : Microsoft.VisualStudio.Shell.Interop.IVsUIShell2 * nativeint * string * string * string * Microsoft.VisualStudio.Shell.FileDialog.DialogFilters -> string
Public Function SelectSaveAsFile (vsUIShell As IVsUIShell2, handle As IntPtr, title As String, initialDirectory As String, initialFileName As String, filters As DialogFilters) As String

Parameters

vsUIShell
IVsUIShell2

The VS UI Shell service.

handle
IntPtr

nativeint

The dialog parent handle.

title
String

The dialog title. Leave this empty to use the default behavior.

initialDirectory
String

The initial directory. Leave this empty to use the default behavior.

initialFileName
String

The initial filename used in the text input box. File paths are not supported. This can be an empty string.

filters
DialogFilters

The dialog filters with a default filter index.

Returns

The file path of the selected file.

Applies to