HttpWriter.WriteString(String, Int32, Int32) Method

Definition

Sends a string with the specified starting position and number of characters to the HTTP output stream.

C#
public void WriteString(string s, int index, int count);

Parameters

s
String

The string to send to the HTTP output stream.

index
Int32

The character position of the first byte to send.

count
Int32

The number of characters to send, beginning at the character position specified by index.

Exceptions

The index is less than zero.

-or-

The count is less than zero.

-or-

The sum of the index and the count are greater than the string length.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1