Export (0) Print
Expand All

IisTraceListener.TraceData Method (TraceEventCache, String, TraceEventType, Int32, Object)

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public override void TraceData(
	TraceEventCache eventCache,
	string source,
	TraceEventType eventType,
	int id,
	Object data
)

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.

eventType
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.

data
Type: System.Object

The trace data 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.

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

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.0 SP1, 2.0 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft