SaveFileDialog.CreatePrompt Property

 

Gets or sets a value indicating whether SaveFileDialog prompts the user for permission to create a file if the user specifies a file that does not exist.

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

public bool CreatePrompt {
	get;
	[SecurityCriticalAttribute]
	set;
}

Property Value

Type: System.Boolean

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

UIPermission

to set this dialog option. Associated enumeration: AllWindows

.NET Framework
Available since 3.0
Return to top
Show: