Creates a new instance of the StreamReader class for the specified stream.
[Visual Basic] Overloads Public Sub New( _ ByVal stream As Stream _ ) [C#] public StreamReader( Stream stream ); [C++] public: StreamReader( Stream* stream ); [JScript] public function StreamReader( stream : Stream );
Exception Type | Condition |
---|---|
ArgumentNullException | stream is null. |
The default character encoding and the default buffer size are used.
StreamReader Class | StreamReader Members | System.IO Namespace | StreamReader Constructor Overload List