HttpRequestWrapper.InsertEntityBody 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为用于将 HTTP 请求实体正文插入内存的 IIS 方法提供托管包装。
重载
| InsertEntityBody() | 向 IIS 提供 HTTP 请求实体正文的副本。 | 
| InsertEntityBody(Byte[], Int32, Int32) | 向 IIS 提供 HTTP 请求实体正文的副本以及有关请求实体对象的信息。 | 
InsertEntityBody()
向 IIS 提供 HTTP 请求实体正文的副本。
public:
 override void InsertEntityBody();public override void InsertEntityBody();override this.InsertEntityBody : unit -> unitPublic 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 -> unitPublic 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 是负值。
如果给定 offset 值,则 count 中的项目数大于 buffer 中的可用空间。