Initializes a new instance of the BinaryWriter class based on the specified stream and character encoding, and optionally leaves the stream open.
Assembly: mscorlib (in mscorlib.dll)
public BinaryWriter( Stream output, Encoding encoding, bool leaveOpen )
public: BinaryWriter( Stream^ output, Encoding^ encoding, bool leaveOpen )
new : output:Stream * encoding:Encoding * leaveOpen:bool -> BinaryWriter
Public Sub New ( output As Stream, encoding As Encoding, leaveOpen As Boolean )
The output stream.
The character encoding to use.
true to leave the stream open after the BinaryWriter object is disposed; otherwise, false.
Available since 8
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Available since 8.1