HttpRequestWrapper.InsertEntityBody 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 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 版本中调用的。
buffer 是 null。
offset 或 count 为负值。
鉴于count值,其中buffer项的数目大于可用空间offset。