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.
The DeviceInfos object has these types of members:
The DeviceInfos object has these properties.
||Retrieves the number of members in the collection.
||Retrieves the specified item in the collection either by position or device ID.
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"
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.
Use any of the following to retrieve a reference to the object:
|Minimum supported client
||Windows Vista [desktop apps only]
|Minimum supported server
||Windows Server 2003 R2 [desktop apps only]