ReadDecimal Method

BinaryReader.ReadDecimal Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Reads a decimal value from the current stream and advances the current position of the stream by sixteen bytes.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Overridable Function ReadDecimal As Decimal

Return Value

Type: System.Decimal
A decimal value read from the current stream.

ExceptionCondition
EndOfStreamException

The end of the stream is reached.

ObjectDisposedException

The stream is closed.

IOException

An I/O error occurs.

BinaryReader does not restore the file position after an unsuccessful read.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2016 Microsoft