Creates a new instance of the BinaryReader class based on the supplied stream and using UTF8Encoding.
[Visual Basic] Overloads Public Sub New( _ ByVal input As Stream _ ) [C#] public BinaryReader( Stream input ); [C++] public: BinaryReader( Stream* input ); [JScript] public function BinaryReader( input : Stream );
Exception Type | Condition |
---|---|
ArgumentException | The stream does not support reading. |
ArgumentNullException | input is a null reference (in Visual Basic Nothing). |
BinaryReader Class | BinaryReader Members | System.IO Namespace | BinaryReader Constructor Overload List