IPortableDeviceWebControl interface

Represents a factory that can instantiate a WPD Automation Device object in a Windows Store app.

Members

The IPortableDeviceWebControl interface inherits from the IDispatch interface. IPortableDeviceWebControl also has these types of members:

Methods

The IPortableDeviceWebControl interface has these methods.

MethodDescription
GetDeviceFromId

Instantiates a WPD Automation Device object for a given WPD device identifier.

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

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

IDL

Portabledeviceapi.idl

See also

Portable Device Service Sample

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.