Share via


OpenFileDialog.SelectedFiles Property

Gets a collection of FileDialogFileInfo objects for the selected files.

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

Syntax

'Declaration
Public ReadOnly Property SelectedFiles As IEnumerable(Of FileDialogFileInfo)
'Usage
Dim instance As OpenFileDialog
Dim value As IEnumerable(Of FileDialogFileInfo)

value = instance.SelectedFiles
public IEnumerable<FileDialogFileInfo> SelectedFiles { get; }
public:
property IEnumerable<FileDialogFileInfo^>^ SelectedFiles {
    IEnumerable<FileDialogFileInfo^>^ get ();
}
public function get SelectedFiles () : IEnumerable<FileDialogFileInfo>

Property Value

Type: System.Collections.Generic.IEnumerable<FileDialogFileInfo>

A collection of FileDialogFileInfo objects for the selected files.

See Also

Reference

OpenFileDialog Class

OpenFileDialog Members

System.Windows.Controls Namespace

Other Resources

How to: Use the Open File Dialog Box