Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SetDeviceEventCapability Method
See Also 
Leadtools.Twain Namespace > TwainSession Class : SetDeviceEventCapability Method



deviceCap
Contains the capability values to set
deviceCap
Contains the capability values to set
Sets CAP_DEVICEEVENT capability values

Syntax

Visual Basic (Declaration) 
Public Sub SetDeviceEventCapability( _
   ByVal deviceCap As TwainCapability _
) 
Visual Basic (Usage)Copy Code
Dim instance As TwainSession
Dim deviceCap As TwainCapability
 
instance.SetDeviceEventCapability(deviceCap)
C# 
public void SetDeviceEventCapability( 
   TwainCapability deviceCap
)
C++/CLI 
public:
void SetDeviceEventCapability( 
   TwainCapability^ deviceCap
) 

Parameters

deviceCap
Contains the capability values to set

Example

Refer to GetDeviceEventCapability example.

Remarks

This method will set CAP_DEVICEEVENT capability to defaults values. To get CAP_DEVICEEVENT capability values, call GetDeviceEventCapability method, and to reset the CAP_DEVICEEVENT values, call ResetDeviceEventCapability method.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also