ImageGear .NET v25.0 - Updated
SetCapability Method




ImageGear.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : SetCapability Method
Specifies the capability to change.

Specifies whether to set or reset capability value(s).

Note: GET, GETCURRENT, and GETDEFAULT are invalid settings for the message parameter, and will result in an exception.

This method sets or resets the current value of a capability.
Syntax
'Declaration
 
Public Sub SetCapability( _
   ByVal capability As ImGearCap, _
   ByVal message As ImGearMessages _
) 
'Usage
 
Dim instance As ImGearTWAIN
Dim capability As ImGearCap
Dim message As ImGearMessages
 
instance.SetCapability(capability, message)
public void SetCapability( 
   ImGearCap capability,
   ImGearMessages message
)
public: void SetCapability( 
   ImGearCap* capability,
   ImGearMessages message
) 
public:
void SetCapability( 
   ImGearCap^ capability,
   ImGearMessages message
) 

Parameters

capability
Specifies the capability to change.
message

Specifies whether to set or reset capability value(s).

Note: GET, GETCURRENT, and GETDEFAULT are invalid settings for the message parameter, and will result in an exception.

Remarks

Prior to calling this method, use OpenSource to select the desired Data Source.

See Also

Reference

ImGearTWAIN Class
ImGearTWAIN Members
ImGearCap Class
ImGearMessages Enumeration