Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
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).
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
)
Managed Extensions for 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also