Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a factory that can instantiate a WPD Automation Device object in a Windows Store app.
Inheritance
The IPortableDeviceWebControl interface inherits from the IDispatch interface. IPortableDeviceWebControl also has these types of members:
Methods
The IPortableDeviceWebControl interface has these methods.
| IPortableDeviceWebControl::GetDeviceFromId Instantiates a WPD Automation Device object for a given WPD device identifier. (IPortableDeviceWebControl.GetDeviceFromId) |
| IPortableDeviceWebControl::GetDeviceFromIdAsync Instantiates a WPD Automation Device object asynchronously for a given WPD device identifier. |
Remarks
Examples
For WPD devices that use an MTP device service, you can create a COM Automation object to work with the device like this:
deviceFactory = new ActiveXObject("PortableDeviceAutomation.Factory");
var device = deviceFactory.getDeviceFromId(deviceId);
// Get the first service on the device
var deviceService = device.services[0];
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 [UWP apps only] |
| Minimum supported server | Windows Server 2012 [UWP apps only] |
| Target Platform | Windows |
| Header | portabledeviceapi.h |