VintaSoft Twain .NET SDK v10.2
GetUsageMode Method (DeviceCapability)




Vintasoft.Twain Namespace > DeviceCapability Class : GetUsageMode Method
Gets the usage modes of device capability.
Syntax
'Declaration
 
Public Function GetUsageMode() As DeviceCapabilityUsageMode
'Usage
 
Dim instance As DeviceCapability
Dim value As DeviceCapabilityUsageMode
 
value = instance.GetUsageMode()
public DeviceCapabilityUsageMode GetUsageMode()
public: DeviceCapabilityUsageMode GetUsageMode(); 
public:
DeviceCapabilityUsageMode GetUsageMode(); 

Return Value

Usage modes of device capability.
Exceptions
ExceptionDescription
Thrown if device is in wrong state.
Thrown if error occurs during getting the capability value.
Thrown if the .NET debugger is used and the function evaluation requires all threads to run.
Example
Please see example here.
Requirements

Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also

Reference

DeviceCapability Class
DeviceCapability Members