System.Windows.Forms.FileDialog.FileNames Property

Gets the file names of all selected files in the dialog box.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public string[] FileNames { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Each file name includes both the file path and the extension. If no files are selected, this method returns an empty array.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0