Trace Members
.NET Framework 2.0
Provides a set of methods and properties that help you trace the execution of your code. This class cannot be inherited.
The following tables list the members exposed by the Trace type.
| Name | Description | |
|---|---|---|
| AutoFlush | Gets or sets whether Flush should be called on the Listeners after every write. |
| CorrelationManager | Gets the correlation manager for the thread for this trace. |
| 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. |
| UseGlobalLock | Gets or sets a value indicating whether the global lock should be used. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Assert | Overloaded. Checks for a condition, and displays a message if the condition is false. |
| Close | Flushes the output buffer, and then closes the Listeners. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| Fail | Overloaded. Emits an error message. |
| Flush | Flushes the output buffer, and causes buffered data to be written to the Listeners. |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| Indent | Increases the current IndentLevel by one. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| Refresh | Refreshes the trace configuration data. |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| TraceError | Overloaded. Writes error information to the trace listeners in the Listeners collection. |
| TraceInformation | Overloaded. Writes an informational message to the trace listeners in the Listeners collection. |
| TraceWarning | Overloaded. Writes warning information to the trace listeners in the Listeners collection. |
| 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. |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Community Additions
ADD
Show: