Compartir a través de


Device object

Represents an active connection to an imaging device.

Members

The Device object has these types of members:

Methods

The Device object has these methods.

Method Description
ExecuteCommand (Device) Issues the command to the imaging device.
GetItem Retrieves the specified item.

Properties

The Device object has these properties.

Property Access type Description
Commands (Device)
Read-only
Retrieves a collection of all commands for this imaging device.
DeviceID (Device)
Read-only
Retrieves the DeviceID (Device) for this Device.
Events
Read-only
Retrieves a collection of all events for this imaging device.
Items (Device)
Read-only
Retrieves a collection of all items for this imaging device.
Properties (Device)
Read-only
Retrieves a collection of all properties for this imaging device.
Type (Device)
Read-only
Retrieves the type of Device.
WiaItem (Device)
Read-only
Retrieves the underlying IWiaItem interface for this Device object.

Remarks

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.

Creation\Access Functions

Use any of the following to retrieve a reference to the object:

Connect

Device (VideoPreview)

ShowSelectDevice

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

Reference

ShowAcquisitionWizard

ShowDeviceProperties

ShowSelectDevice

ShowSelectItems

Connect

Device (VideoPreview)