This topic has not yet been rated - Rate this topic

BinaryReader Constructor (Stream, Encoding)

May 02, 2013

Initializes a new instance of the BinaryReader class based on the supplied stream and a specific character encoding.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)
public BinaryReader(
	Stream input,
	Encoding encoding
)

Parameters

input
Type: System.IO.Stream
The input stream.
encoding
Type: System.Text.Encoding
The character encoding to use.
ExceptionCondition
ArgumentException

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

ArgumentNullException

input or encoding is null.

The stream is closed when the BinaryReader object is disposed.

Windows Phone OS

Supported in: 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.