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

Reads data from the stream.

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

Parameters

buffer
Location to store data read from the stream.
offset
[To be supplied.]
count
[To be supplied.]

Return Value

The number of bytes read from the stream, or 0 if the underlying socket is closed.

See Also

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