Modifier

Partager via


IisTraceListener.TraceData Method

Definition

Writes trace data to the output of the IisTraceListener class.

Overloads

TraceData(TraceEventCache, String, TraceEventType, Int32, Object)

Writes trace information, a data object, and event information to the output of the IisTraceListener class.

TraceData(TraceEventCache, String, TraceEventType, Int32, Object[])

Writes trace information, an array of data objects, and event information to the output of the IisTraceListener class.

Remarks

TraceData is introduced in the .NET Framework 3.5. For more information, see Versions and Dependencies.

TraceData(TraceEventCache, String, TraceEventType, Int32, Object)

Writes trace information, a data object, and event information to the output of the IisTraceListener class.

public:
 override void TraceData(System::Diagnostics::TraceEventCache ^ eventCache, System::String ^ source, System::Diagnostics::TraceEventType eventType, int id, System::Object ^ data);
public override void TraceData (System.Diagnostics.TraceEventCache eventCache, string source, System.Diagnostics.TraceEventType eventType, int id, object data);
override this.TraceData : System.Diagnostics.TraceEventCache * string * System.Diagnostics.TraceEventType * int * obj -> unit
Public Overrides Sub TraceData (eventCache As TraceEventCache, source As String, eventType As TraceEventType, id As Integer, data As Object)

Parameters

eventCache
TraceEventCache

A TraceEventCache object that contains the current process ID, thread ID, and stack trace information.

source
String

A name that identifies the output. This is typically the name of the application that generated the trace event.

eventType
TraceEventType

A TraceEventType value that specifies the type of event that caused the trace.

id
Int32

A numeric identifier for the event.

data
Object

The trace data to write.

Remarks

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.

TraceData is introduced in the .NET Framework 3.5. For more information, see Versions and Dependencies.

Applies to

TraceData(TraceEventCache, String, TraceEventType, Int32, Object[])

Writes trace information, an array of data objects, and event information to the output of the IisTraceListener class.

public:
 override void TraceData(System::Diagnostics::TraceEventCache ^ eventCache, System::String ^ source, System::Diagnostics::TraceEventType eventType, int id, ... cli::array <System::Object ^> ^ data);
public override void TraceData (System.Diagnostics.TraceEventCache eventCache, string source, System.Diagnostics.TraceEventType eventType, int id, params object[] data);
override this.TraceData : System.Diagnostics.TraceEventCache * string * System.Diagnostics.TraceEventType * int * obj[] -> unit
Public Overrides Sub TraceData (eventCache As TraceEventCache, source As String, eventType As TraceEventType, id As Integer, ParamArray data As Object())

Parameters

eventCache
TraceEventCache

A TraceEventCache object that contains the current process ID, thread ID, and stack trace information.

source
String

A name that identifies the output. This is typically the name of the application that generated the trace event.

eventType
TraceEventType

A TraceEventType value that specifies the type of event that caused the trace.

id
Int32

A numeric identifier for the event.

data
Object[]

An array of objects to write as data.

Remarks

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.

TraceData is introduced in the .NET Framework 3.5. For more information, see Versions and Dependencies.

Applies to