SaveFileDialog.OverwritePrompt Property


Gets or sets a value indicating whether SaveFileDialog displays a warning if the user specifies the name of a file that already exists.

Namespace:   Microsoft.Win32
Assembly:  PresentationFramework (in PresentationFramework.dll)

member OverwritePrompt : bool with get, set

Property Value

Type: System.Boolean

true if dialog should prompt prior to saving over a filename that previously existed; otherwise, false. The default is true.


to set this dialog option. Associated enumeration: AllWindows

.NET Framework
Available since 3.0
Return to top