ExternalStorage Class
Collapse the table of content
Expand the table of content

ExternalStorage Class

[ 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.

System.Object
  Microsoft.Phone.Storage.ExternalStorage

Namespace:  Microsoft.Phone.Storage
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

'Declaration
Public NotInheritable Class ExternalStorage

The ExternalStorage type exposes the following members.

  NameDescription
Public methodStatic memberGetExternalStorageDevicesAsyncGets the SD cards that are inserted in the phone.
Top

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.

Capabilities

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.

ID_CAP_REMOVABLE_STORAGE

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.

Show:
© 2017 Microsoft