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大于字符串长度。

适用于