HttpWriter.Write Method

Definition

Sends HTTP output to the client.

Overloads

Write(Char)

Sends a single character to the HTTP output stream.

Write(Object)

Sends an Object to the HTTP output stream.

Write(String)

Sends a string to the HTTP output stream.

Write(Char[], Int32, Int32)

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

Write(Char)

Sends a single character to the HTTP output stream.

C#
public override void Write(char ch);

Parameters

ch
Char

The character to send to the HTTP output stream.

See also

Applies to

.NET Framework 4.8.1 and other versions
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

Write(Object)

Sends an Object to the HTTP output stream.

C#
public override void Write(object obj);

Parameters

obj
Object

The Object to send to the HTTP output stream.

Applies to

.NET Framework 4.8.1 and other versions
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

Write(String)

Sends a string to the HTTP output stream.

C#
public override void Write(string s);

Parameters

s
String

The string to send to the HTTP output stream.

See also

Applies to

.NET Framework 4.8.1 and other versions
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

Write(Char[], Int32, Int32)

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

C#
public override void Write(char[] buffer, int index, int count);

Parameters

buffer
Char[]

The memory buffer containing the characters to send to the HTTP output stream.

index
Int32

The buffer position of the first character to send.

count
Int32

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

Exceptions

buffer, is null.

-or-

index is less than zero.

-or-

count is less than zero.

-or-

buffer length minus index is less than count.

See also

Applies to

.NET Framework 4.8.1 and other versions
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