NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BinaryReader Constructor (Stream, Encoding)

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
);

Parameters

input
[To be supplied.]
encoding
[To be supplied.]

Exceptions

Exception Type Condition
ArgumentException The stream does not support reading.
ArgumentNullException input or encoding is a null reference (in Visual Basic Nothing).

See Also

BinaryReader Class | BinaryReader Members | System.IO Namespace | BinaryReader Constructor Overload List