Share via


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.

Inheritance Hierarchy

System..::.Object
  Microsoft.Phone.Storage..::.ExternalStorage

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

Syntax

Public NotInheritable Class ExternalStorage
public static class ExternalStorage

The ExternalStorage type exposes the following members.

Methods

  Name Description
GetExternalStorageDevicesAsync Gets the SD cards that are inserted in the phone.

Top

Remarks

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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Phone.Storage Namespace