Run Method

Summary
Runs custom user commands.
Syntax
C#
VB
C++
[WebGetAttribute(BodyStyle=1, 
   RequestFormat=1, 
   ResponseFormat=1, 
   UriTemplate="RunCommand?id={id}&commandName={commandName}&arguments={arguments}&userData={user" + "Data}")] 
[OperationContractAttribute(Name="RunCommand", 
   Action="RunCommand", 
   AsyncPattern=false, 
   IsOneWay=false, 
   IsInitiating=true, 
   IsTerminating=false)] 
public Stream Run( 
   string id, 
   string commandName, 
   string arguments, 
   object userData 
) 
  
<OperationContractAttribute(Name="RunCommand", Action="RunCommand")> 
<WebGetAttribute(BodyStyle=WebMessageBodyStyle.Wrapped,  
   IsBodyStyleSetExplicitly=True,  
   IsRequestFormatSetExplicitly=True,  
   IsResponseFormatSetExplicitly=True,  
   RequestFormat=WebMessageFormat.Json,  
   ResponseFormat=WebMessageFormat.Json,  
   UriTemplate="RunCommand?id={id}&commandName={commandName}&arguments={arguments}&userData={userData}")> 
Function Run( _ 
   ByVal id As String, _ 
   ByVal commandName As String, _ 
   ByVal arguments As String, _ 
   ByVal userData As Object _ 
) As Stream 
[OperationContractAttribute(Name="RunCommand", Action="RunCommand")] 
[WebGetAttribute(BodyStyle=WebMessageBodyStyle.Wrapped,  
   IsBodyStyleSetExplicitly=true,  
   IsRequestFormatSetExplicitly=true,  
   IsResponseFormatSetExplicitly=true,  
   RequestFormat=WebMessageFormat.Json,  
   ResponseFormat=WebMessageFormat.Json,  
   UriTemplate="RunCommand?id={id}&commandName={commandName}&arguments={arguments}&userData={userData}")] 
Stream^ Run(  
   String^ id, 
   String^ commandName, 
   String^ arguments, 
   Object^ userData 
)  

Parameters

id
The scanning session Id.

commandName
The command name.

arguments
The command arguments.

userData
The user data.

Return Value

User custom data.

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

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