HttpWriter.Write 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 HTTP 輸出傳送給用戶端。
多載
| 名稱 | Description |
|---|---|
| Write(Char) |
將單一字元傳送到 HTTP 輸出串流。 |
| Write(Object) |
將 an Object 傳送到 HTTP 輸出串流。 |
| Write(String) |
將字串傳送到 HTTP 輸出串流。 |
| Write(Char[], Int32, Int32) |
將一串具有指定起始位置與字元數的字元串流傳送到 HTTP 輸出串流。 |
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。