IPortableDeviceWebControl interface (portabledeviceapi.h)
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
Note This interface can only be used in Windows Store apps.
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 |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for