MemoryMappedViewAccessor: ReadCurrency

ReadCurrency

Reads a 64-bit currency from the accessor.



 Public Function ReadCurrency(
	  ByVal Position As Long ) As Currency

Parameters

Position
[ByVal] Long. The number of bytes into the accessor at which to begin reading.

Return Values

Currency -  The value that was read.

Remarks

The ReadCurrency method reads 64-bits but does not scale the value to create a Currency without a fractional part. For example if the 64-bits read is equal to 1 then the returned currency value would be 0.0001.

Exceptions

Exception Condition
ArgumentExceptionThere are not enough bytes after Position to read a value.
ArgumentOutOfRangeExceptionPosition is less than zero or greater than the capacity of the accessor.
NotSupportedExceptionThe accessor does not support reading.

See Also

Project CorLib Overview

Class MemoryMappedViewAccessor Overview