Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.36 KB

storagedevice.md

File metadata and controls

42 lines (30 loc) · 1.36 KB
-api-id -api-type
T:Windows.Devices.Portable.StorageDevice
winrt class

Windows.Devices.Portable.StorageDevice

-description

Provides methods for accessing the storage functionality of a portable device that supports WPD. Removable storage devices include:

  • USB mass storage flash drives and cameras
  • Media Transfer Protocol (MTP) music players, phones, and cameras
  • Picture Transfer Protocol (PTP) cameras

-remarks

To access the device services, you must declare the device service in the capabilities section of the app manifest file. For a list of the GUIDs representing the device services, see Windows.Devices.Portable.

-examples

The following example shows the syntax of a call to FromId.

var folder = StorageDevice.FromId(deviceInformationId);
StorageFolder folder{ StorageDevice::FromId(deviceInformationId) };
StorageFolder^ folder = StorageDevice::FromId(deviceInformationId);

-see-also

Removable Storage Sample

-capabilities

removableStorage