OpenFileDialog.ValidateNames
property · OpenFileDialog · cAlgo.API Since 5.1
DesktopCLICloud
Gets or sets a value indicating whether the dialog accepts only valid file names.
Environment behaviour
CLI — not supported. No dialog can be shown in the CLI: ShowDialog returns FileDialogResult.None and the dialog settings are only stored.
Cloud — not supported. No dialog can be shown in the cloud: ShowDialog returns FileDialogResult.None and the dialog settings are only stored.
Definition
public bool ValidateNames {get; set;}
openFileDialog.ValidateNames: bool
Returns bool
Examples
var openFileDialog = new OpenFileDialog { ValidateNames = true };
openFileDialog.ShowDialog();
openFileDialog = OpenFileDialog()
openFileDialog.ValidateNames = True
openFileDialog.ShowDialog()