Skip to content

SaveFileDialog.ValidateNames

property · SaveFileDialog · 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, nothing is written and the dialog settings are only stored.

Cloud — not supported. No dialog can be shown in the cloud: ShowDialog returns FileDialogResult.None, nothing is written and the dialog settings are only stored.

Definition

public bool ValidateNames {get; set;}
saveFileDialog.ValidateNames: bool

Returns bool

Examples

var saveFileDialog = new SaveFileDialog { ValidateNames = true };
saveFileDialog.ShowDialog();
saveFileDialog = SaveFileDialog()
saveFileDialog.ValidateNames = True
saveFileDialog.ShowDialog()