This topic has not yet been rated - Rate this topic

ExternalStorageDevice.GetFileAsync Method

May 02, 2013

Gets a single file from the current SD card using the specified path.

Namespace:  Microsoft.Phone.Storage
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
'Declaration
Public Function GetFileAsync ( _
	filePath As String _
) As Task(Of ExternalStorageFile)

Parameters

filePath
Type: System.String
The path of the file, relative to the root folder.

Return Value

Type: System.Threading.Tasks.Task(Of ExternalStorageFile)
The task that returns the ExternalStorageFile object.

Your app must register for a file association in the app manifest file to declare what file types (extensions) can be read from the SD card. For more info, see Auto-launching apps using file and URI associations for Windows Phone 8.

Windows Phone OS

Supported in: 8.0

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.