MemoryMappedViewAccessor: ReadDate

ReadDate

Read a Date from the accessor.



 Public Function ReadDate(
	  ByVal Position As Long ) As Date

Parameters

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

Return Values

Date -  The value to be read.

Remarks

The ReadDate method reads 64-bits as Ticks to represent the Date. This means that there is a possible invalid date value read. This would cause an OverflowException to be thrown.

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.
OverflowExceptionA value was read that cannot be represented as a valid OLE Automation Date.
NotSupportedExceptionThe accessor does not support reading.

See Also

Project CorLib Overview

Class MemoryMappedViewAccessor Overview