←Select platform

SelectSource Method

Summary

Selects a source for acquiring images.

Syntax

C#
VB
C++
[WebInvokeAttribute(BodyStyle=2, 
   Method="POST", 
   RequestFormat=1, 
   ResponseFormat=1)] 
[OperationContractAttribute(Name="SelectSource", 
   Action="SelectSource", 
   AsyncPattern=false, 
   IsOneWay=false, 
   IsInitiating=true, 
   IsTerminating=false)] 
public void SelectSource( 
   string id, 
   string sourceName, 
   object userData 
) 
  
<WebInvokeAttribute(BodyStyle=WebMessageBodyStyle.WrappedRequest,  
   IsBodyStyleSetExplicitly=True,  
   IsRequestFormatSetExplicitly=True,  
   IsResponseFormatSetExplicitly=True,  
   Method="POST",  
   RequestFormat=WebMessageFormat.Json,  
   ResponseFormat=WebMessageFormat.Json)> 
<OperationContractAttribute(Name="SelectSource", Action="SelectSource")> 
Sub SelectSource( _ 
   ByVal id As String, _ 
   ByVal sourceName As String, _ 
   ByVal userData As Object _ 
)  
[WebInvokeAttribute(BodyStyle=WebMessageBodyStyle.WrappedRequest,  
   IsBodyStyleSetExplicitly=true,  
   IsRequestFormatSetExplicitly=true,  
   IsResponseFormatSetExplicitly=true,  
   Method="POST",  
   RequestFormat=WebMessageFormat.Json,  
   ResponseFormat=WebMessageFormat.Json)] 
[OperationContractAttribute(Name="SelectSource", Action="SelectSource")] 
void SelectSource(  
   String^ id, 
   String^ sourceName, 
   Object^ userData 
)  

Parameters

id
The scanning session Id.

sourceName
String contains source name to be selected.

userData
The user data.

Requirements

Target Platforms

Help Version 19.0.2017.10.18
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Services.Twain Assembly