SaveFileDialog::OverwritePrompt Property
.NET Framework (current version)
Gets or sets a value indicating whether SaveFileDialog displays a warning if the user specifies the name of a file that already exists.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: property bool OverwritePrompt { bool get(); [SecurityCriticalAttribute] void set(bool value); }
Property Value
Type: System::Booleantrue if dialog should prompt prior to saving over a filename that previously existed; otherwise, false. The default is true.
UIPermission
to set this dialog option. Associated enumeration: AllWindows
.NET Framework
Available since 3.0
Available since 3.0
Show: