Buffer.Read Method ()

Reads the current data in the buffer.

Overload List

public void Read(int, Stream, int, LockFlag);
public Array Read(int, Type, LockFlag, int[]);

Remarks

Exceptions
ArgumentExceptionLeave Site An invalid parameter was passed to the called method, or numberBytesToRead is set to zero.
ArgumentNullExceptionLeave Site One or more parameters is null.
ArgumentOutOfRangeExceptionLeave Site The ranks parameter is out of range. The maximum number of dimensions for the ranks array is three.
BufferLostException The buffer memory has been lost and must be restored.
InvalidCallException The method call is invalid. For example, a method's parameter might not be valid.
NotSupportedExceptionLeave Site Unable to write to the receiving stream object, data. Check if the stream is writable.
PriorityLevelNeededException A cooperative level of Priority or higher is required.
Show: