Share via


HttpWriter.WriteString(String, Int32, Int32) Metoda

Definice

Odešle řetězec se zadanou počáteční pozicí a počtem znaků do výstupního streamu 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)

Parametry

s
String

Řetězec, který se má odeslat do výstupního streamu HTTP.

index
Int32

Pozice znaku prvního bajtu, který se má odeslat.

count
Int32

Počet znaků, které se mají odeslat, počínaje pozicí znaku určenou nástrojem index.

Výjimky

Hodnota index je menší než nula.

-nebo-

Hodnota count je menší než nula.

-nebo-

Součet hodnot index a jsou count větší než délka řetězce.

Platí pro