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