←Select platform

Init Method (ITwainService)

Summary

Initializes the TWAIN service.

Syntax

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

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