EventLogTraceListener

EventLogTraceListener marshal 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



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net