Leadtools TWAIN (Leadtools.Twain assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
SetCapability Method
See Also 
Leadtools.Twain Namespace > TwainSession Class : SetCapability Method



capability
Contains the values to set.
mode
Indicates whether to set or reset value(s).
capability
Contains the values to set.
mode
Indicates whether to set or reset value(s).
Sets the value of the specified capability.

Syntax

Visual Basic (Declaration) 
Public Sub SetCapability( _
   ByVal capability As TwainCapability, _
   ByVal mode As TwainSetCapabilityMode _
) 
Visual Basic (Usage)Copy Code
Dim instance As TwainSession
Dim capability As TwainCapability
Dim mode As TwainSetCapabilityMode
 
instance.SetCapability(capability, mode)
C# 
public void SetCapability( 
   TwainCapability capability,
   TwainSetCapabilityMode mode
)
C++/CLI 
public:
void SetCapability( 
   TwainCapability^ capability,
   TwainSetCapabilityMode mode
) 

Parameters

capability
Contains the values to set.
mode
Indicates whether to set or reset value(s).

Example

Remarks

For more information, refer to Freeing the TWAIN Session.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also