←Select platform

Acquire Method

Summary

Acquires images from the selected source.

Syntax

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

Parameters

id
The scanning session Id.

flags
Indicates whether to display the manufacturer's user interface.

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