HtmlTextWriter.Close Method

Definition

Closes the HtmlTextWriter object and releases any system resources associated with it.

C#
public override void Close();

Remarks

This implementation of the Close method calls the TextWriter.Close base method.

Following a call to the Close method, any operations on the HtmlTextWriter object might throw exceptions because all its resources have been released.

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

See also