Method TraceEvent
TraceEvent(TraceEventCache, String, TraceEventType, Int32)
Writes trace and event information to the listener specific output.
Declaration
public override void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id)
Parameters
Type | Name | Description |
---|---|---|
TraceEventCache | eventCache | A TraceEventCache object that contains the current process ID, thread ID, and stack trace information. |
String | source | A name used to identify the output, typically the name of the application that generated the trace event. |
TraceEventType | eventType | One of the TraceEventType values specifying the type of event that has caused the trace. |
Int32 | id | A numeric identifier for the event. |
TraceEvent(TraceEventCache, String, TraceEventType, Int32, String)
Writes trace information, a message, and event information to the listener specific output.
Declaration
public override void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string message)
Parameters
Type | Name | Description |
---|---|---|
TraceEventCache | eventCache | A TraceEventCache object that contains the current process ID, thread ID, and stack trace information. |
String | source | A name used to identify the output, typically the name of the application that generated the trace event. |
TraceEventType | eventType | One of the TraceEventType values specifying the type of event that has caused the trace. |
Int32 | id | A numeric identifier for the event. |
String | message | A message to write. |
TraceEvent(TraceEventCache, String, TraceEventType, Int32, String, Object[])
Writes trace information, a formatted array of objects and event information to the listener specific output.
Declaration
public override void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
TraceEventCache | eventCache | A TraceEventCache object that contains the current process ID, thread ID, and stack trace information. |
String | source | A name used to identify the output, typically the name of the application that generated the trace event. |
TraceEventType | eventType | One of the TraceEventType values specifying the type of event that has caused the trace. |
Int32 | id | A numeric identifier for the event. |
String | format | A format string that contains zero or more format items, which correspond to objects in the |
Object[] | args | An langword_csharp_object array containing zero or more objects to format. |