This documentation is archived and is not being maintained.
TraceListener.Close Method
.NET Framework 1.1
When overridden in a derived class, closes the output stream so it no longer receives tracing or debugging output.
[Visual Basic] Public Overridable Sub Close() [C#] public virtual void Close(); [C++] public: virtual void Close(); [JScript] public function Close();
Remarks
Use this method when the output is going to a file, such as to the TextWriterTraceListener. After a call to this method, you must reinitialize the object.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
See Also
TraceListener Class | TraceListener Members | System.Diagnostics Namespace | TraceListener | DefaultTraceListener | EventLogTraceListener | TextWriterTraceListener | Debug | Trace
Show: