FileDialog.CheckFileExists Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value indicating whether a file dialog displays a warning if the user specifies a file name that does not exist.

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

public virtual bool CheckFileExists {
	get;
	[SecurityCriticalAttribute]
	set;
}

Property Value

Type: System.Boolean

true if warnings are displayed; otherwise, false. The default in this base class is false.

The OpenFileDialog class sets this property to true in its constructor.

FileIOPermission

to reset the dialog user interface. Associated enumeration: Unrestricted

.NET Framework
Available since 3.0
Return to top
Show: