This documentation is archived and is not being maintained.
Trace Methods
Visual Studio 2010
The Trace type exposes the following members.
| Name | Description | |
|---|---|---|
|
Assert(Boolean) | Checks for a condition; if the condition is false, displays a message box that shows the call stack. |
|
Assert(Boolean, String) | Checks for a condition; if the condition is false, outputs a specified message and displays a message box that shows the call stack. |
|
Assert(Boolean, String, String) | Checks for a condition; if the condition is false, outputs two specified messages and displays a message box that shows the call stack. |
|
Close | Flushes the output buffer, and then closes the Listeners. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Fail(String) | Emits the specified error message. |
|
Fail(String, String) | Emits an error message, and a detailed error message. |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
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. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
Indent | Increases the current IndentLevel by one. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Refresh | Refreshes the trace configuration data. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
TraceError(String) | Writes an error message to the trace listeners in the Listeners collection using the specified message. |
|
TraceError(String, array<Object>) | Writes an error message to the trace listeners in the Listeners collection using the specified array of objects and formatting information. |
|
TraceInformation(String) | Writes an informational message to the trace listeners in the Listeners collection using the specified message. |
|
TraceInformation(String, array<Object>) | Writes an informational message to the trace listeners in the Listeners collection using the specified array of objects and formatting information. |
|
TraceWarning(String) | Writes a warning message to the trace listeners in the Listeners collection using the specified message. |
|
TraceWarning(String, array<Object>) | Writes a warning message to the trace listeners in the Listeners collection using the specified array of objects and formatting information. |
|
Unindent | Decreases the current IndentLevel by one. |
|
Write(Object) | Writes the value of the object's ToString method to the trace listeners in the Listeners collection. |
|
Write(String) | Writes a message to the trace listeners in the Listeners collection. |
|
Write(Object, String) | Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection. |
|
Write(String, String) | Writes a category name and a message to the trace listeners in the Listeners collection. |
|
WriteIf(Boolean, Object) | Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true. |
|
WriteIf(Boolean, String) | Writes a message to the trace listeners in the Listeners collection if a condition is true. |
|
WriteIf(Boolean, Object, String) | Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true. |
|
WriteIf(Boolean, String, String) | Writes a category name and message to the trace listeners in the Listeners collection if a condition is true. |
|
WriteLine(Object) | Writes the value of the object's ToString method to the trace listeners in the Listeners collection. |
|
WriteLine(String) | Writes a message to the trace listeners in the Listeners collection. |
|
WriteLine(Object, String) | Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection. |
|
WriteLine(String, String) | Writes a category name and message to the trace listeners in the Listeners collection. |
|
WriteLineIf(Boolean, Object) | Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true. |
|
WriteLineIf(Boolean, String) | Writes a message to the trace listeners in the Listeners collection if a condition is true. |
|
WriteLineIf(Boolean, Object, String) | Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true. |
|
WriteLineIf(Boolean, String, String) | Writes a category name and message to the trace listeners in the Listeners collection if a condition is true. |
Show: