HttpRequestWrapper.InsertEntityBody Method

Definition

Provides a managed wrapper for the IIS method that inserts an HTTP request entity body into memory.

Overloads

InsertEntityBody()

Provides with a copy of the HTTP request entity body to IIS.

InsertEntityBody(Byte[], Int32, Int32)

Provides IIS with a copy of the HTTP request entity body and with information about the request entity object.

InsertEntityBody()

Provides with a copy of the HTTP request entity body to IIS.

C#
public override void InsertEntityBody();

Exceptions

The method was invoked on a version of IIS earlier than IIS 7.0.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

InsertEntityBody(Byte[], Int32, Int32)

Provides IIS with a copy of the HTTP request entity body and with information about the request entity object.

C#
public override void InsertEntityBody(byte[] buffer, int offset, int count);

Parameters

buffer
Byte[]

An array that contains the request entity data.

offset
Int32

The zero-based position in buffer at which to begin storing the request entity data.

count
Int32

The number of bytes to read into the buffer array.

Exceptions

The method was invoked on a version of IIS earlier than IIS 7.0.

buffer is null.

offset or count is a negative value.

The number of items in count is larger than the available space in buffer, given the offset value.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1