Click to Rate and Give Feedback
MSDN
MSDN Library
Collapse All/Expand All Collapse All
.NET Framework Class Library for Silverlight
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)

Visual Basic (Declaration)
Public ReadOnly Property SelectedFile As FileDialogFileInfo
Visual Basic (Usage)
Dim instance As OpenFileDialog
Dim value As FileDialogFileInfo

value = instance.SelectedFile
C#
public FileDialogFileInfo SelectedFile { get; }
Visual C++
public:
property FileDialogFileInfo^ SelectedFile {
    FileDialogFileInfo^ get ();
}
JScript
public function get SelectedFile () : FileDialogFileInfo

Property Value

Type: System.Windows.Controls..::.FileDialogFileInfo

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

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker