Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Printer Friendly Version
Send
Click to Rate and Give Feedback
Give feedback on this content
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
Previous Versions
Please Wait
.NET Framework 1.1
Please Wait
.NET Framework
Please Wait
Reference
Please Wait
System.Diagnostics
Please Wait
Trace Class
Please Wait
Trace Members
Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2003/.Net Framework 1.1
Other versions are also available for the following:
Microsoft Visual Studio 2005/.Net Framework 2.0
.NET Framework 3.0
Microsoft Visual Studio 2008/.Net Framework 3.5
Microsoft Visual Studio 2010/.NET Framework 4.0
.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
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement