Click or drag to resize

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
)

Parameters

type
Type: SystemType
A Type for the structure being read.

Return Value

Type: Object
The structure read from memory.
Exceptions
ExceptionCondition
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