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.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- input
- Type: System.IO.Stream
The input stream.
| Exception | Condition |
|---|---|
| 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.
Show: