This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Trace Members
Public:
Constructor
Properties
AutoFlush |
Gets or sets whether Flush should be called on the Listeners after every write. |
Indent |
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. |
Methods
Assert |
Overloaded. Checks for a condition and displays a message if the condition is false. |
Close |
Clears the output buffer and then closes the Listeners so that they no longer receive debugging output. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
Fail |
Overloaded. Emits or displays a message for an assertion that always fails. |
Flush |
Clears the output buffer and causes any buffered data to be written to the Listeners. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) |
Gets the Type of the Object. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Write |
Overloaded. Writes information about the trace to the trace listeners in the Listeners collection. |
WriteIf |
Overloaded. Writes a message to the trace listeners in the Listeners collection if a condition is true. |
WriteLine |
Overloaded. Writes information about the trace followed by a line terminator to the trace listeners in the Listeners collection. |
WriteLineIf |
Overloaded. Writes information about the trace followed by a line terminator to the trace listeners in the Listeners collection if a condition is true. |
Protected:
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
Trace Class | System.Diagnostics Namespace