HttpRequestWrapper.InsertEntityBody 方法

定义

为 IIS 方法提供托管包装器,该方法将 HTTP 请求实体正文插入内存中。

重载

名称 说明
InsertEntityBody()

提供 HTTP 请求实体正文到 IIS 的副本。

InsertEntityBody(Byte[], Int32, Int32)

为 IIS 提供 HTTP 请求实体正文的副本以及有关请求实体对象的信息。

InsertEntityBody()

提供 HTTP 请求实体正文到 IIS 的副本。

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

例外

该方法是在 IIS 7.0 之前的 IIS 版本中调用的。

适用于

InsertEntityBody(Byte[], Int32, Int32)

为 IIS 提供 HTTP 请求实体正文的副本以及有关请求实体对象的信息。

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)

参数

buffer
Byte[]

包含请求实体数据的数组。

offset
Int32

从零开始存储请求实体数据的位置 buffer

count
Int32

要读入数组的 buffer 字节数。

例外

该方法是在 IIS 7.0 之前的 IIS 版本中调用的。

buffernull

offsetcount 为负值。

鉴于count值,其中buffer项的数目大于可用空间offset

适用于