FileDialog::CheckFileExists Property

 

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:
property bool CheckFileExists {
	virtual bool get();
	[SecurityCriticalAttribute]
	virtual void set(bool value);
}

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: