←Select platform

Acquire Method (ITwainService)

Summary

Acquires images from the selected source.

Syntax

C#
VB
C++
[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 
) 
<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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Services.Twain Assembly
Click or drag to resize