TwainMemoryReadStructure Method (Type) |
Reads a structure from the current
Position and advances the position by the
structure memory size.
Namespace:
Atalasoft.Twain
Assembly:
Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public Object ReadStructure(
Type type
)
Public Function ReadStructure (
type As Type
) As Object
Parameters
- type
- Type: SystemType
A Type for the structure being read.
Return Value
Type:
Object The structure read from memory.
Exceptions Exception | Condition |
---|
| Thrown if the TwainMemory has been disposed. |
| Thrown if the Position is invalid for reading this data. |
| Thrown if the type is null (Nothing in VB). |
Remarks This method will increase the
Position by the number of bytes type
requires.
See Also