Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
 SelectedFile Property
.NET Framework Class Library for Silverlight
OpenFileDialog..::.SelectedFile Property
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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.

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