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)

public bool OverwritePrompt {
	get;
	[SecurityCriticalAttribute]
	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.

UIPermission

to set this dialog option. Associated enumeration: AllWindows

.NET Framework
Available since 3.0
Return to top
Show: