IisTraceListener.TraceEvent Method (TraceEventCache, String, TraceEventType, Int32, String)
This API supports the product infrastructure and is not intended to be used directly from your code.
Writes trace and event information to the output of the IisTraceListener class.
Assembly: System.Web (in System.Web.dll)
override TraceEvent : eventCache:TraceEventCache * source:string * severity:TraceEventType * id:int * message:string -> unit
Parameters
- eventCache
-
Type:
System.Diagnostics.TraceEventCache
A System.Diagnostics.TraceEventCache object that contains the current process ID, thread ID, and stack trace information.
- source
-
Type:
System.String
A name that identifies the output. This is typically the name of the application that generated the trace event.
- severity
-
Type:
System.Diagnostics.TraceEventType
A System.Diagnostics.TraceEventType value that specifies the type of event that caused the trace.
- id
-
Type:
System.Int32
A numeric identifier for the event.
- message
-
Type:
System.String
A message to write.
This method is not intended to be called directly by application code. The members of the System.Diagnostics.Debug, System.Diagnostics.Trace, and System.Diagnostics.TraceSource classes use this method to write trace data.
TraceEvent is introduced in the .NET Framework 3.5. For more information, see .NET Framework Versions and Dependencies.
Available since 2.0