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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기