Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Trace Methods

The Trace type exposes the following members.

  NameDescription
Public method Static member Assert(Boolean) Checks for a condition; if the condition is false, displays a message box that shows the call stack.
Public method Static member 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.
Public method Static member 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.
Public method Static member Close Flushes the output buffer, and then closes the Listeners.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Static member Fail(String) Emits the specified error message.
Public method Static member Fail(String, String) Emits an error message, and a detailed error message.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member Flush Flushes the output buffer, and causes buffered data to be written to the Listeners.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member Indent Increases the current IndentLevel by one.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Refresh Refreshes the trace configuration data.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Static member TraceError(String) Writes an error message to the trace listeners in the Listeners collection using the specified message.
Public method Static member TraceError(String, Object[]) Writes an error message to the trace listeners in the Listeners collection using the specified array of objects and formatting information.
Public method Static member TraceInformation(String) Writes an informational message to the trace listeners in the Listeners collection using the specified message.
Public method Static member TraceInformation(String, Object[]) Writes an informational message to the trace listeners in the Listeners collection using the specified array of objects and formatting information.
Public method Static member TraceWarning(String) Writes a warning message to the trace listeners in the Listeners collection using the specified message.
Public method Static member TraceWarning(String, Object[]) Writes a warning message to the trace listeners in the Listeners collection using the specified array of objects and formatting information.
Public method Static member Unindent Decreases the current IndentLevel by one.
Public method Static member Write(Object) Writes the value of the object's ToString method to the trace listeners in the Listeners collection.
Public method Static member Write(String) Writes a message to the trace listeners in the Listeners collection.
Public method Static member Write(Object, String) Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection.
Public method Static member Write(String, String) Writes a category name and a message to the trace listeners in the Listeners collection.
Public method Static member 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.
Public method Static member WriteIf(Boolean, String) Writes a message to the trace listeners in the Listeners collection if a condition is true.
Public method Static member 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.
Public method Static member WriteIf(Boolean, String, String) Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.
Public method Static member WriteLine(Object) Writes the value of the object's ToString method to the trace listeners in the Listeners collection.
Public method Static member WriteLine(String) Writes a message to the trace listeners in the Listeners collection.
Public method Static member WriteLine(Object, String) Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection.
Public method Static member WriteLine(String, String) Writes a category name and message to the trace listeners in the Listeners collection.
Public method Static member 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.
Public method Static member WriteLineIf(Boolean, String) Writes a message to the trace listeners in the Listeners collection if a condition is true.
Public method Static member 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.
Public method Static member WriteLineIf(Boolean, String, String) Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.