BinaryReader Constructor (Stream)
Collapse the table of content
Expand the table of content

BinaryReader Constructor (Stream)

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

Initializes a new instance of the BinaryReader class based on the supplied stream and using UTF8Encoding.

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

'Declaration
Public Sub New ( _
	input As Stream _
)

Parameters

input
Type: System.IO.Stream
The input stream.

ExceptionCondition
ArgumentNullException

The stream is Nothing.

ArgumentException

The stream does not support reading, or the stream is already closed.

The stream is closed when the BinaryReader object is disposed.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft