Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft