Click or drag to resize

TwainCapability Class

This class is used with SendCommand to get or set device capabilities.
Inheritance Hierarchy
SystemObject
  Atalasoft.TwainTwainCapability

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public class TwainCapability : ITwainDataStructure

The TwainCapability type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleTwainCapability
Creates a new instance of TwainCapability.
Public methodCode exampleTwainCapability(DeviceCapability)
Creates a new instance of TwainCapability specifying the capability to work with.
Public methodCode exampleTwainCapability(DeviceCapability, TwainContainer, IntPtr)
Creates a new instance of TwainCapability specifying the capability, container type and pointer to the data.
Top
Properties
  NameDescription
Public propertyCapability
Gets or sets the capability to work with.
Public propertyContainerType
Gets or sets the container used to hold the data.
Public propertyData
Gets or sets the data pointer.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetStructurePointer
Creates the memory pointer containing data sent to Twain.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsSupportedCommand
Returns a value indicating whether the implementing class supports a specific TwainTriplet command.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodProcessResult
Receives the data pointer created by GetStructurePointer(TwainMemory) after being processed by Twain.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples
TwainCapabilityCS (C#)
TwainCapability cap = new TwainCapability(DeviceCapability.CAP_DEVICEONLINE);
TwainReturnCode ret = SendCommand(TwainTriplet.CapabilityGetCurrent, this._device, cap);
TwainCapabilityVB (Visual Basic)
Dim cap As TwainCapability = New TwainCapability(DeviceCapability.CAP_DEVICEONLINE) 
Dim ret As TwainReturnCode = SendCommand(TwainTriplet.CapabilityGetCurrent, Me._device,cap)
See Also