This documentation is archived and is not being maintained.

EventLogTraceListener.WriteLine Method

Writes a message to the event log for this instance.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method WriteLine(Object) Writes the value of the object's ToString method to the listener you create when you implement the TraceListener class, followed by a line terminator. (Inherited from TraceListener.)
Public method WriteLine(String) Writes a message to the event log for this instance. (Overrides TraceListener.WriteLine(String).)
Public method WriteLine(Object, String) Writes a category name and the value of the object's ToString method to the listener you create when you implement the TraceListener class, followed by a line terminator. (Inherited from TraceListener.)
Public method WriteLine(String, String) Writes a category name and a message to the listener you create when you implement the TraceListener class, followed by a line terminator. (Inherited from TraceListener.)
Top
Show: