HttpWriter.WriteString(String, Int32, Int32) 方法

定義

以指定的起始位置和字元數,傳送字串至 HTTP 輸出資料流。

public:
 void WriteString(System::String ^ s, int index, int count);
public void WriteString (string s, int index, int count);
member this.WriteString : string * int * int -> unit
Public Sub WriteString (s As String, index As Integer, count As Integer)

參數

s
String

要傳送到 HTTP 輸出資料流的字串。

index
Int32

要傳送的第一個位元組的字元位置。

count
Int32

要傳送的字元數,以 index 所指定的字元位置開始。

例外狀況

index 小於零。

-或-

count 小於零。

-或-

indexcount 的加總大於字串長度。

適用於