WriteString Method

HttpWriter.WriteString Method (String, Int32, Int32)

 

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

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public void WriteString(
	string s,
	int index,
	int count
)

Parameters

s
Type: System.String

The string to send to the HTTP output stream.

index
Type: System.Int32

The character position of the first byte to send.

count
Type: System.Int32

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

Exception Condition
ArgumentOutOfRangeException

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft