EventLogTraceListener

EventLogTraceListenermarshal by reference, disposable

System.Diagnostics (system.dll)sealed class

To capture trace and debug output to an EventLog, add an instance of this class to Debug.Listeners, or Trace.Listeners. You can specify an EventLog instance in the constructor or the name of an event source as a string.

public sealed class EventLogTraceListener : TraceListener {
// Public Constructors
   public EventLogTraceListener( );
   public EventLogTraceListener(EventLog eventLog);
   public EventLogTraceListener(string source);
// Public Instance Properties
   public EventLog EventLog{set; get; }
   public override string Name{set; get; }            
// overrides TraceListener
// Public Instance Methods
   public override void Close( );         
// overrides TraceListener
   public override void Write(string message);       
// overrides TraceListener
   public override void WriteLine(string message);   
// overrides TraceListener
// Protected Instance Methods
   protected override void Dispose(bool disposing);  
// overrides TraceListener
}

Hierarchy

System.Object System.MarshalByRefObject TraceListener(System.IDisposable) EventLogTraceListener



    Part II: Programming with the .NET Framework
    Part IV: API Quick Reference
    Chapter 26. System
     
    ASPTreeView.com
     
    Evaluation has САЙ·Ѕexpired.
    Info...