Trace Members
MSDN Home
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
System.Diagnostics
Trace Class
Trace Class
Trace Members
Properties
Methods
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
.NET Framework Class Library
Trace Members
Trace overview
Public Properties
AutoFlush
Gets or sets whether
Flush
should be called on the
Listeners
after every write.
IndentLevel
Gets or sets the indent level.
IndentSize
Gets or sets the number of spaces in an indent.
Listeners
Gets the collection of listeners that is monitoring the trace output.
Public Methods
Assert
Supported by the .NET Compact Framework.
Overloaded. Checks for a condition, and displays a message if the condition is
false
.
Close
Flushes the output buffer, and then closes the
Listeners
.
Fail
Overloaded. Emits an error message.
Flush
Flushes the output buffer, and causes buffered data to be written to the
Listeners
.
Indent
Increases the current
IndentLevel
by one.
Unindent
Decreases the current
IndentLevel
by one.
Write
Overloaded. Writes information about the trace to the trace listeners in the
Listeners
collection.
WriteIf
Overloaded. Writes information about the trace to the trace listeners in the
Listeners
collection if a condition is
true
.
WriteLine
Overloaded. Writes information about the trace to the trace listeners in the
Listeners
collection.
WriteLineIf
Overloaded. Writes information about the trace to the trace listeners in the
Listeners
collection if a condition is
true
.
See Also
Trace Class
|
System.Diagnostics Namespace