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.Write

Writes a value to the current stream.

Overload List

Writes a four-byte signed integer to the current stream and advances the stream position by four bytes.

[Visual Basic] Overloads Public Sub Write(Integer)
[C#] public void Write(int);
[C++] public: void Write(int);
[JScript] public function Write(int);

Writes a four-byte unsigned integer to the current stream and advances the stream position by four bytes.

[Visual Basic] Overloads Public Sub Write(UInt32)
[C#] public void Write(uint);
[C++] public: void Write(unsigned int);
[JScript] public function Write(UInt32);

Writes a two-byte signed integer to the current stream and advances the stream position by two bytes.

[Visual Basic] Overloads Public Sub Write(Integer)
[C#] public void Write(short);
[C++] public: void Write(short);
[JScript] public function Write(Int16);

Writes a two-byte unsigned integer to the current stream and advances the stream position by two bytes.

[Visual Basic] Overloads Public Sub Write(UInt16)
[C#] public void Write(ushort);
[C++] public: void Write(unsigned short);
[JScript] public function Write(UInt16);

Writes a four-byte floating-point value to the current stream and advances the stream position by four bytes.

[Visual Basic] Overloads Public Sub Write(Single)
[C#] public void Write(float);
[C++] public: void Write(float);
[JScript] public function Write(float);

Writes a string to the text stream and advances the current position of the stream in accordance with the Encoding used and perhaps the particular characters being written to the stream.

[Visual Basic] Overloads Public Sub Write(String)
[C#] public void Write(String);
[C++] public: void Write(String*);
[JScript] public function Write(String);

Writes an eight-byte signed integer to the current stream and advances the stream position by eight bytes.

[Visual Basic] Overloads Public Sub Write(Long)
[C#] public void Write(long);
[C++] public: void Write(__int64);
[JScript] public function Write(long);

Writes a eight-byte unsigned integer to the current stream and advances the stream position by eight bytes.

[Visual Basic] Overloads Public Sub Write(UInt64)
[C#] public void Write(ulong);
[C++] public: void Write(unsigned __int64);
[JScript] public function Write(UInt64);

Writes a byte to the current stream and advances the stream position by one byte.

[Visual Basic] Overloads Public Sub Write(Byte)
[C#] public void Write(byte);
[C++] public: void Write(unsigned char);
[JScript] public function Write(Byte);

Writes a signed byte to the current stream and advances the stream position by one byte.

[Visual Basic] Overloads Public Sub Write(SByte)
[C#] public void Write(sbyte);
[C++] public: void Write(char);
[JScript] public function Write(SByte);

Writes a region of a byte array to the current stream.

[Visual Basic] Overloads Overridable Public Sub Write(Byte(), Integer, Integer)
[C#] public virtual void Write(byte[], int, int);
[C++] public: virtual void Write(unsigned char*[], int, int);
[JScript] public function Write(Byte[], int, int);

Writes a one-byte Boolean value to the current stream, with zero representing false and one representing true.

[Visual Basic] Overloads Public Sub Write(Boolean)
[C#] public void Write(bool);
[C++] public: void Write(bool);
[JScript] public function Write(Boolean);

Writes a byte array to the underlying stream.

[Visual Basic] Overloads Public Sub Write(Byte())
[C#] public void Write(byte[]);
[C++] public: void Write(unsigned char*[]);
[JScript] public function Write(Byte[]);

Writes a section of a character array to the current stream and advances the current position of the stream in accordance with the Encoding used and perhaps the particular characters being written to the stream.

[Visual Basic] Overloads Public Sub Write(Char(), Integer, Integer)
[C#] public void Write(char[], int, int);
[C++] public: void Write(__wchar_t*[], int, int);
[JScript] public function Write(Char[], int, int);

Writes an eight-byte floating-point value to the current stream and advances the stream position by eight bytes.

[Visual Basic] Overloads Public Sub Write(Double)
[C#] public void Write(double);
[C++] public: void Write(double);
[JScript] public function Write(double);

Writes a Unicode character to the current stream and advances the current position of the stream in accordance with the Encoding used and perhaps the particular characters being written to the stream.

[Visual Basic] Overloads Public Sub Write(Char)
[C#] public void Write(char);
[C++] public: void Write(__wchar_t);
[JScript] public function Write(Char);

Writes a character array to the current stream and advances the current position of the stream in accordance with the Encoding used and perhaps the particular characters being written to the stream.

[Visual Basic] Overloads Public Sub Write(Char())
[C#] public void Write(char[]);
[C++] public: void Write(__wchar_t*[]);
[JScript] public function Write(Char[]);

See Also

BinaryWriter Class | BinaryWriter Members | System.IO Namespace