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

This method 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:
virtual void TraceData (
	TraceEventCache^ eventCache, 
	String^ source, 
	TraceEventType eventType, 
	int id, 
	Object^ data
) override
public void TraceData (
	TraceEventCache eventCache, 
	String source, 
	TraceEventType eventType, 
	int id, 
	Object data
)
public override function TraceData (
	eventCache : TraceEventCache, 
	source : String, 
	eventType : TraceEventType, 
	id : int, 
	data : Object
)
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.

eventType

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

id

A numeric identifier for the event.

data

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 . For more information, see The .NET Framework 3.5 Architecture.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: