SelectDevice Method

Summary
Selects the WIA device represented by the passed device ID.
Syntax
C#
VB
C++
public void SelectDevice( 
   string deviceId 
) 
  
Public Sub SelectDevice( _ 
   ByVal deviceId As String _ 
)  
public: 
void SelectDevice(  
   String^ deviceId 
)  

Parameters

deviceId
String that contains the device ID. You can obtain this string by enumerating the available WIA devices on your machine.

Remarks

Use this function when working with multiple WIA devices installed on a machine in order to select the WIA device without displaying the Select Device dialog. To do this, enumerate the WIA devices by calling the EnumDevices method. Then use it to keep a list of all received device IDs. Then call SelectDevice method using the device ID for the device to be selected.

Example

Refer to WiaSession.EnumDevices

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Wia Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.