[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides read-only access to the SD card.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Public NotInheritable Class ExternalStorage
public static class ExternalStorage
The ExternalStorage type exposes the following members.
|GetExternalStorageDevicesAsync||Gets the SD cards that are inserted in the phone.|
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.
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
Windows Phone 8
For more info, see App capabilities and hardware requirements for Windows Phone 8.
Windows Phone OS
Supported in: 8.1, 8.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.