HttpResponseBase.Write Method

Definition

Writes information to the HTTP response output stream.

Overloads

Write(Char)

Writes a character to an HTTP response output stream.

Write(Object)

Writes the specified object to the HTTP response stream.

Write(String)

Writes the specified string to the HTTP response output stream.

Write(Char[], Int32, Int32)

Writes the specified array of characters to the HTTP response output stream.

Write(Char)

Writes a character to an HTTP response output stream.

public:
 virtual void Write(char ch);
public virtual void Write (char ch);
abstract member Write : char -> unit
override this.Write : char -> unit
Public Overridable Sub Write (ch As Char)

Parameters

ch
Char

The character to write to the HTTP output stream.

Exceptions

Applies to

Write(Object)

Writes the specified object to the HTTP response stream.

public:
 virtual void Write(System::Object ^ obj);
public virtual void Write (object obj);
abstract member Write : obj -> unit
override this.Write : obj -> unit
Public Overridable Sub Write (obj As Object)

Parameters

obj
Object

The object to write to the HTTP output stream.

Exceptions

Applies to

Write(String)

Writes the specified string to the HTTP response output stream.

public:
 virtual void Write(System::String ^ s);
public virtual void Write (string s);
abstract member Write : string -> unit
override this.Write : string -> unit
Public Overridable Sub Write (s As String)

Parameters

s
String

The string to write to the HTTP output stream.

Exceptions

Applies to

Write(Char[], Int32, Int32)

Writes the specified array of characters to the HTTP response output stream.

public:
 virtual void Write(cli::array <char> ^ buffer, int index, int count);
public virtual void Write (char[] buffer, int index, int count);
abstract member Write : char[] * int * int -> unit
override this.Write : char[] * int * int -> unit
Public Overridable Sub Write (buffer As Char(), index As Integer, count As Integer)

Parameters

buffer
Char[]

The character array to write.

index
Int32

The position in the character array where writing starts.

count
Int32

The number of characters to write, starting at index.

Exceptions

Applies to