HttpWorkerRequest.ReadEntityBody Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloaded. Reads request data from the client (when not preloaded).
Overloads
ReadEntityBody(Byte[], Int32) |
Reads request data from the client (when not preloaded). |
ReadEntityBody(Byte[], Int32, Int32) |
Reads request data from the client (when not preloaded) by using the specified buffer to read from, byte offset, and maximum bytes. |
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.
ReadEntityBody(Byte[], Int32)
Reads request data from the client (when not preloaded).
public:
virtual int ReadEntityBody(cli::array <System::Byte> ^ buffer, int size);
public virtual int ReadEntityBody (byte[] buffer, int size);
abstract member ReadEntityBody : byte[] * int -> int
override this.ReadEntityBody : byte[] * int -> int
Public Overridable Function ReadEntityBody (buffer As Byte(), size As Integer) As Integer
Parameters
- buffer
- Byte[]
The byte array to read data into.
- size
- Int32
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.
Applies to
ReadEntityBody(Byte[], Int32, Int32)
Reads request data from the client (when not preloaded) by using the specified buffer to read from, byte offset, and maximum bytes.
public:
virtual int ReadEntityBody(cli::array <System::Byte> ^ buffer, int offset, int size);
public virtual int ReadEntityBody (byte[] buffer, int offset, int size);
abstract member ReadEntityBody : byte[] * int * int -> int
override this.ReadEntityBody : byte[] * int * int -> int
Public Overridable Function ReadEntityBody (buffer As Byte(), offset As Integer, size As Integer) As Integer
Parameters
- buffer
- Byte[]
The byte array to read data into.
- offset
- Int32
The byte offset at which to begin reading.
- size
- Int32
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.