System.Web.HttpWorkerRequest.ReadEntityBody Method

Reads request data from the client (when not preloaded).

Syntax

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

Parameters

buffer
The byte array to read data into.
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: 1.0.5000.0, 2.0.0.0