System.Web.HttpWorkerRequest.ReadEntityBody Method

Reads request data from the client (when not preloaded) by using the specified buffer to read from, byte offset, and maximum bytes.

Syntax

public virtual int ReadEntityBody (byte[] buffer, int offset, int size)

Parameters

buffer
The byte array to read data into.
offset
The byte offset at which to begin reading.
size
The maximum number of bytes to read.

Returns

The number of bytes read.

Remarks

An implementation is free to return fewer bytes than requested even if the end of the stream has not been reached.

Use this overload to specify the response for message bodies greater than 2 GB.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0