HttpWriter.Write 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳送 HTTP 輸出至用戶端。
多載
Write(Char) |
傳送單一字元至 HTTP 輸出資料流。 |
Write(Object) |
傳送 Object 至 HTTP 輸出資料流。 |
Write(String) |
傳送字串至 HTTP 輸出資料流。 |
Write(Char[], Int32, Int32) |
以指定的起始位置和字元數,傳送字元的資料流至 HTTP 輸出資料流。 |
Write(Char)
Write(Object)
Write(String)
Write(Char[], Int32, Int32)
以指定的起始位置和字元數,傳送字元的資料流至 HTTP 輸出資料流。
public:
override void Write(cli::array <char> ^ buffer, int index, int count);
public override void Write (char[] buffer, int index, int count);
override this.Write : char[] * int * int -> unit
Public Overrides Sub Write (buffer As Char(), index As Integer, count As Integer)
參數
- buffer
- Char[]
記憶體緩衝區,包含要傳送至 HTTP 輸出資料流程的字元。
- index
- Int32
要傳送的第一個字元的緩衝區位置。
- count
- Int32
要傳送的字元數,以 index
所指定的位置開始。
例外狀況
buffer
為 null
。
-或-
index
小於零。
-或-
count
小於零。
-或-
buffer
長度減去 index
小於 count
。
另請參閱
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應