Share via


DeviceInfos object

Contains a collection of all the imaging devices currently connected to the computer. For details on accessing the DeviceInfos object, see the DeviceInfos (DeviceManager) property on the DeviceManager object.

Members

The DeviceInfos object has these types of members:

Properties

The DeviceInfos object has these properties.

Property Access type Description
Count (DeviceInfos)
Read-only
Retrieves the number of members in the collection.
Item (DeviceInfos)
Read-only
Retrieves the specified item in the collection either by position or device ID.

Remarks

Note that the DeviceInfos collection can be accessed by device ID and position.

The following lines do the same thing:

Dim d 'As Device
set d = DeviceManager1.DeviceInfos(1).Connect

MsgBox d.Properties("Name").Value & " was successfully created"

Or:

Dim d 'As Device
set d = DeviceManager1.DeviceInfos(DeviceManager1.DeviceInfos(1).DeviceID).Connect

MsgBox d.Properties("Name").Value & " was successfully created"

For more example code, see List all Available Devices by Name and DeviceID in Shared Samples.

Creation\Access Functions

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

DeviceInfos (DeviceManager)

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

DeviceInfos (DeviceManager)