FileDialog.CheckFileExists Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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 {

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.


to reset the dialog user interface. Associated enumeration: Unrestricted

.NET Framework
Available since 3.0
Return to top