HttpRequestWrapper.InsertEntityBody 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供一個受管理包裝器,用於將 HTTP 請求實體實體插入記憶體。
多載
| 名稱 | Description |
|---|---|
| InsertEntityBody() |
向 IIS 提供 HTTP 請求實體實體的副本。 |
| InsertEntityBody(Byte[], Int32, Int32) |
提供 IIS HTTP 請求實體實體的副本及請求實體物件的資訊。 |
InsertEntityBody()
向 IIS 提供 HTTP 請求實體實體的副本。
public:
override void InsertEntityBody();
public override void InsertEntityBody();
override this.InsertEntityBody : unit -> unit
Public Overrides Sub InsertEntityBody ()
例外狀況
此方法曾在 IIS 7.0 之前的版本中被調用。
適用於
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 之前的版本中被調用。
buffer 是 null。
offset 或 count 為負值。
在 中count項目的數量大於給定buffer值的offset可用空間。