OpenFileDialog.SelectedFile Property

Gets a FileDialogFileInfo object for the selected file. If multiple files are selected, returns the first selected file.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public FileDialogFileInfo SelectedFile { get; }

Property Value

Type: System.Windows.Controls.FileDialogFileInfo

The selected file. If multiple files are selected, returns the first selected file.

Show: