FileDialog.ValidateNames Property

 

Gets or sets a value indicating whether the dialog accepts only valid Win32 file names.

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

public bool ValidateNames {
	get;
	[SecurityCriticalAttribute]
	set;
}

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: