Class FinAdminTraceListener
Special TraceListener that redirects all generic TRACE output to the given StringBuilder.
public class FinAdminTraceListener : TraceListener, IDisposable
- Inheritance
-
FinAdminTraceListener
- Implements
- Inherited Members
Constructors
FinAdminTraceListener(StringBuilder)
public FinAdminTraceListener(StringBuilder sb)
Parameters
sbStringBuilderOptional StringBuilder instance which will receive the trace. If this is
null, then a new StringBuilder instance will be created by this class.
Fields
FINADMINTRACELISTENER_NAME
The name which is used to register the trace listener.
public const string FINADMINTRACELISTENER_NAME = "FinAdminTraceListener"
Field Value
Properties
TraceString
Provides a string with the collected trace output.
public string TraceString { get; }
Property Value
Methods
Clear()
Reset the collected trace.
public void Clear()
Install()
Create and install a new FinAdminTraceListener.
public static FinAdminTraceListener Install()
Returns
Remove()
Removes this TraceListener, so that it will not capture any more trace output.
public void Remove()
Write(string)
public override void Write(string sMessage)
Parameters
sMessagestring
WriteLine(string)
public override void WriteLine(string sMessage)
Parameters
sMessagestring