←Select platform

SetVersion Method

Summary

Sets the desired TWAIN version with which to work.

Syntax
C#
C++/CLI
Python
[WebInvokeAttribute(BodyStyle=2, 
   Method="POST", 
   RequestFormat=1, 
   ResponseFormat=1)] 
[OperationContractAttribute(Name="SetVersion", 
   Action="SetVersion", 
   AsyncPattern=false, 
   IsOneWay=false, 
   IsInitiating=true, 
   IsTerminating=false)] 
public string SetVersion( 
   TwainVersion version, 
   object userData 
) 
public:  
   [WebInvokeAttribute(BodyStyle=2, 
      Method=L"POST", 
      RequestFormat=1, 
      ResponseFormat=1)] 
   [OperationContractAttribute(Name=L"SetVersion", 
      Action=L"SetVersion", 
      AsyncPattern=false, 
      IsOneWay=false, 
      IsInitiating=true, 
      IsTerminating=false)] 
   String^ SetVersion( 
      TwainVersion^ version, 
      Object^ userData 
   ) 
def SetVersion(self,version,userData): 

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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Services.Twain Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.