←Select platform

Init Method

Summary

Initializes the TWAIN service.

Syntax

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

Parameters

manufacturer
The manufacturer's name.

productFamily
The application product family.

version
The TWAIN version information.

application
The application name.

userData
The user data.

Return Value

The created session id.

Requirements

Target Platforms

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

Leadtools.Services.Twain Assembly