FileOpenPicker.PickSingleFileAsync() | pickSingleFileAsync() method

Shows the file picker so that the user can pick one file. (Windows Store apps)

Syntax


fileOpenPicker.pickSingleFileAsync().done( /* Your success and error handlers */ );

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<StorageFile>

When the call to this method completes successfully, it returns a StorageFile object that represents the file that the user picked.

Requirements

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

None supported

End of phone support

Windows Phone 8.1 [Windows Phone Silverlight 8.1 apps only]

Namespace

Windows.Storage.Pickers
Windows::Storage::Pickers [C++]

Metadata

Windows.winmd

See also

File picker sample
Quickstart: Accessing files with file pickers
FileOpenPicker

 

 

Show:
© 2014 Microsoft