FileDialog::ValidateNames 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 the dialog accepts only valid Win32 file names.

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

property bool ValidateNames {
	bool get();
	void set(bool value);

Property Value

Type: System::Boolean

true if warnings will be shown when an invalid file name is provided; otherwise, false. The default is false.


to set the validation behavior. Associated enumeration: Unrestricted

.NET Framework
Available since 3.0
Return to top