Clears the output buffer and then closes the Listeners so that they no longer receive debugging output.
[Visual Basic] Public Shared Sub Close() [C#] public static void Close(); [C++] public: static void Close(); [JScript] public static function Close();
Use this method when the output is going to a file such as to the TextWriterTraceListener.
Trace Class | Trace Members | System.Diagnostics Namespace | Debug | Trace | BooleanSwitch | TraceSwitch | TraceListener | DefaultTraceListener | ConditionalAttribute