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 Table
The following table lists the members exposed by the DeviceInfos object.
Property Description Count (DeviceInfos) Retrieves the number of members in the collection. Item (DeviceInfos) 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.
Object Information
CLSID Not available Minimum operating systems Windows XP SP1
See Also