←Select platform

IsAvailable Method

Summary
Determines whether a TWAIN source is installed.

Syntax
C#
C++/CLI
Python
[WebInvokeAttribute(BodyStyle=2, 
   Method="POST", 
   RequestFormat=1, 
   ResponseFormat=1)] 
[OperationContractAttribute(Name="IsAvailable", 
   Action="IsAvailable", 
   AsyncPattern=false, 
   IsOneWay=false, 
   IsInitiating=true, 
   IsTerminating=false)] 
public bool IsAvailable( 
   string id, 
   object userData 
) 
[OperationContractAttribute(Name="IsAvailable", Action="IsAvailable")] 
[WebInvokeAttribute(BodyStyle=WebMessageBodyStyle.WrappedRequest,  
   IsBodyStyleSetExplicitly=true,  
   IsRequestFormatSetExplicitly=true,  
   IsResponseFormatSetExplicitly=true,  
   Method="POST",  
   RequestFormat=WebMessageFormat.Json,  
   ResponseFormat=WebMessageFormat.Json)] 
bool IsAvailable(  
   String^ id, 
   Object^ userData 
)  
def IsAvailable(self,id,userData): 

Parameters

id
The scanning session Id.

userData
The user data.

Return Value

true if at least one TWAIN source is installed; otherwise, false.

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.