Device Object

Represents an active connection to an imaging device.

Members Table

The following table lists the members exposed by the Device object.

Method Description
ExecuteCommand (Device) Issues the command to the imaging device.
GetItem Retrieves the specified item.
Property Description
Commands (Device) Retrieves a collection of all commands for this imaging device.
DeviceID (Device) Retrieves the DeviceID (Device) for this Device.
Events Retrieves a collection of all events for this imaging device.
Items (Device) Retrieves a collection of all items for this imaging device.
Properties (Device) Retrieves a collection of all properties for this imaging device.
Type (Device) Retrieves the type of Device.
WiaItem (Device) Retrieves the underlying IWiaItem interface for this Device object.


The imaging device that the Device object represents is independent of the Device object. A user can disconnect an imaging device while your application is using it. Accessing a Device object's properties or methods after this occurs can result in errors.

For example code, see Display all the Properties for the Selected Device in Shared Samples.

Object Information

CLSID Not available
Minimum operating systems Windows XP SP1

See Also

ShowAcquisitionWizard, ShowDeviceProperties, ShowSelectDevice, ShowSelectItems, Connect, Device (VideoPreview)