HtmlTextWriter.Close 方法

定义

关闭 HtmlTextWriter 对象并释放与之关联的所有系统资源。Closes the HtmlTextWriter object and releases any system resources associated with it.

public:
 override void Close();
public override void Close ();
override this.Close : unit -> unit
Public Overrides Sub Close ()

注解

此方法的实现 Close 调用 TextWriter.Close 基方法。This implementation of the Close method calls the TextWriter.Close base method.

调用 Close 方法后,对对象执行的任何操作 HtmlTextWriter 都可能引发异常,因为它的所有资源都已释放。Following a call to the Close method, any operations on the HtmlTextWriter object might throw exceptions because all its resources have been released.

适用于

另请参阅