-api-id | -api-type |
---|---|
T:Windows.Devices.Portable.StorageDevice |
winrt class |
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
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.
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);
removableStorage