แก้ไข

แชร์ผ่าน


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.

public:
 override void InsertEntityBody();
public override void InsertEntityBody ();
override this.InsertEntityBody : unit -> unit
Public Overrides Sub InsertEntityBody ()

Exceptions

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

Applies to

InsertEntityBody(Byte[], Int32, Int32)

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

public:
 override void InsertEntityBody(cli::array <System::Byte> ^ buffer, int offset, int count);
public override void InsertEntityBody (byte[] buffer, int offset, int count);
override this.InsertEntityBody : byte[] * int * int -> unit
Public Overrides Sub InsertEntityBody (buffer As Byte(), offset As Integer, count As Integer)

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