Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Trace Methods

The methods of the Trace class are listed here. For a complete list of Trace class members, see the Trace Members topic.

Public Methods

public methodstatic (Shared in Visual Basic)Assert

Supported by the .NET Compact Framework.

Overloaded. Checks for a condition, and displays a message if the condition is false.
public methodstatic (Shared in Visual Basic)Close Flushes the output buffer, and then closes the Listeners.
public methodstatic (Shared in Visual Basic)Fail Overloaded. Emits an error message.
public methodstatic (Shared in Visual Basic)Flush Flushes the output buffer, and causes buffered data to be written to the Listeners.
public methodstatic (Shared in Visual Basic)Indent Increases the current IndentLevel by one.
public methodstatic (Shared in Visual Basic)Unindent Decreases the current IndentLevel by one.
public methodstatic (Shared in Visual Basic)Write Overloaded. Writes information about the trace to the trace listeners in the Listeners collection.
public methodstatic (Shared in Visual Basic)WriteIf Overloaded. Writes information about the trace to the trace listeners in the Listeners collection if a condition is true.
public methodstatic (Shared in Visual Basic)WriteLine Overloaded. Writes information about the trace to the trace listeners in the Listeners collection.
public methodstatic (Shared in Visual Basic)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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft