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!

BinaryWriter Constructor

Creates a new instance of the BinaryWriter class that writes to a stream.

Overload List

Creates a new instance of the BinaryWriter class that writes to a stream.

[Visual Basic] Overloads Protected Sub New()
[C#] protected BinaryWriter();
[C++] protected: BinaryWriter();
[JScript] protected function BinaryWriter();

Creates a new instance of the BinaryWriter class based on the supplied stream and using that stream's encoding.

[Visual Basic] Overloads Public Sub New(Stream)
[C#] public BinaryWriter(Stream);
[C++] public: BinaryWriter(Stream*);
[JScript] public function BinaryWriter(Stream);

Creates a new instance of the BinaryWriter class based on the supplied stream and a particular character encoding.

[Visual Basic] Overloads Public Sub New(Stream, Encoding)
[C#] public BinaryWriter(Stream, Encoding);
[C++] public: BinaryWriter(Stream*, Encoding);
[JScript] public function BinaryWriter(Stream, Encoding);

See Also

BinaryWriter Class | BinaryWriter Members | System.IO Namespace