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

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

public:
property bool ValidateNames {
	bool get();
	[SecurityCriticalAttribute]
	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.

FileIOPermission

to set the validation behavior. Associated enumeration: Unrestricted

.NET Framework
Available since 3.0
Return to top
Show: