IisTraceListener.TraceEvent Method (TraceEventCache, String, TraceEventType, Int32, String)
.NET Framework 3.0
This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Writes trace and event information to the output of the IisTraceListener class.
Namespace: System.WebAssembly: System.Web (in system.web.dll)
public: virtual void TraceEvent ( TraceEventCache^ eventCache, String^ source, TraceEventType severity, int id, String^ message ) override
public void TraceEvent ( TraceEventCache eventCache, String source, TraceEventType severity, int id, String message )
public override function TraceEvent ( eventCache : TraceEventCache, source : String, severity : TraceEventType, id : int, message : String )
Not applicable.
Parameters
- eventCache
A System.Diagnostics.TraceEventCache object that contains the current process ID, thread ID, and stack trace information.
- source
A name that identifies the output. This is typically the name of the application that generated the trace event.
- severity
A System.Diagnostics.TraceEventType value that specifies the type of event that caused the trace.
- id
A numeric identifier for the event.
- message
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 . For more information, see The .NET Framework 3.5 Architecture.
Community Additions
ADD
Show: