ImageGear .NET v24.12 - Updated
GetCapability Method




ImageGear24.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : GetCapability Method
ID of the capability to get information about.
Can be on of the following values:ImGearMessages.GET - Get one or more capability values.ImGearMessages.GETCURRENT - Get current capability value.ImGearMessages.GETDEFAULT - Get default (e.g. power up) capability value.
This method gets information about a capability.
Syntax
'Declaration
 
Public Function GetCapability( _
   ByVal id As ImGearCapabilities, _
   ByVal message As ImGearMessages _
) As ImGearCap
'Usage
 
Dim instance As ImGearTWAIN
Dim id As ImGearCapabilities
Dim message As ImGearMessages
Dim value As ImGearCap
 
value = instance.GetCapability(id, message)
public ImGearCap GetCapability( 
   ImGearCapabilities id,
   ImGearMessages message
)
public: ImGearCap* GetCapability( 
   ImGearCapabilities id,
   ImGearMessages message
) 
public:
ImGearCap^ GetCapability( 
   ImGearCapabilities id,
   ImGearMessages message
) 

Parameters

id
ID of the capability to get information about.
message
Can be on of the following values:ImGearMessages.GET - Get one or more capability values.ImGearMessages.GETCURRENT - Get current capability value.ImGearMessages.GETDEFAULT - Get default (e.g. power up) capability value.

Return Value

One of the capability objects containing information about the requested capability.
Remarks
Use OpenSource to select the desired Data Source, prior to calling this method.
See Also

Reference

ImGearTWAIN Class
ImGearTWAIN Members
ImGearCap Class
ImGearCapabilities Enumeration
ImGearMessages Enumeration