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!

NetworkStream.Write

Writes data to the stream..

[Visual Basic]
Overrides Public Function Write( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As Integer
[C#]
public override int Write(
   byte[] buffer,
   int offset,
   int count
);
[C++]
public: override int Write(
   unsigned char* buffer[],
   int offset,
   int count
);
[JScript]
public override function Write(
   buffer : Byte[],
   offset : int,
   count : int
) : int;

Parameters

buffer
The data to write to the stream.
offset
The location in the buffer to start writing data.
count
The number of bytes to write to the stream.

Return Value

The number of bytes written to the stream.

Exceptions

Exception Type Condition
System.IOException The number of bytes written to the stream does not equal count.

See Also

NetworkStream Class | NetworkStream Members | System.Net.Sockets Namespace