←Select platform

SetVersion Method

Summary

Sets the desired TWAIN version with which to work.

Syntax

C#
VB
C++
[OperationContractAttribute(Name="SetVersion", 
   Action="SetVersion", 
   AsyncPattern=false, 
   IsOneWay=false, 
   IsInitiating=true, 
   IsTerminating=false)] 
[WebInvokeAttribute(BodyStyle=2, 
   Method="POST", 
   RequestFormat=1, 
   ResponseFormat=1)] 
public string SetVersion( 
   TwainVersion version, 
   object userData 
) 
<OperationContractAttribute(Name:="SetVersion", 
   Action:="SetVersion", 
   AsyncPattern:=false, 
   IsOneWay:=false, 
   IsInitiating:=true, 
   IsTerminating:=false), 
   WebInvokeAttribute(BodyStyle:=2, 
   Method:="POST", 
   RequestFormat:=1, 
   ResponseFormat:=1)> 
 Public MustOverride Function SetVersion( 
   ByVal version As TwainVersion, 
   ByVal userData As Object 
) As String 
public:  
   [OperationContractAttribute(Name=L"SetVersion", 
      Action=L"SetVersion", 
      AsyncPattern=false, 
      IsOneWay=false, 
      IsInitiating=true, 
      IsTerminating=false)] 
   [WebInvokeAttribute(BodyStyle=2, 
      Method=L"POST", 
      RequestFormat=1, 
      ResponseFormat=1)] 
   virtual String^ SetVersion( 
      TwainVersion^ version, 
      Object^ userData 
   ) abstract 

Parameters

version

The TWAIN version to set, see TwainVersion for a list of available versions.

userData

The user data.

Return Value

Returns "Success" or throws an exception on error.

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