| BitConverter: ToInt64 | 
Returns a 64-bit signed integer converted from eight bytes at a specified position in a byte array.
Public Function ToInt64( ByRef Value ( ) As Byte, ByVal StartIndex As Long ) As Int64
The ToInt64 method converts the bytes from index StartIndex to StartIndex + 7 to a Int64 value. The order of bytes in the array must be little-endian.
| Exception | Condition | 
|---|---|
| ArgumentException | StartIndex is greater than or equal to the length of Value minus 7, and is less than or equal to the length of Value minus 1. | 
| ArgumentNullException | Value is uninitialized. | 
| ArgumentOutOfRangeException | StartIndex is less than zero or greater than the length of Value minus 1. |