Reads data from this stream and stores it in the specified array.
Assembly: System (in System.dll)
abstract Read : buffer:byte * offset:int * count:int -> int override Read : buffer:byte * offset:int * count:int -> int
- Type: System.Int32
A Int32 that contains the zero-based location in buffer at which to begin storing the data read from this stream.
buffer is a null reference (Nothing in Visual Basic).
offset < 0.
offset > the length of buffer.
offset + count > the length of buffer.
The read operation failed. Check the inner exception, if present to determine the cause of the failure.
There is already a read operation in progress.
This object has been closed.
Authentication has not occurred.
The method reads a maximum of count bytes from the stream and stores them in buffer beginning at offset. You cannot perform multiple simultaneous read operations.
You cannot call this method until you have successfully authenticated. To authenticate call one of the AuthenticateAsClient, or BeginAuthenticateAsClient, AuthenticateAsServer, BeginAuthenticateAsServer methods.
To perform this operation asynchronously, use the BeginRead method.