TraceContextRecord.TraceContextRecord Constructor

Initializes a new instance of the TraceContextRecord class.

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

public:
TraceContextRecord (
	String^ category, 
	String^ msg, 
	bool isWarning, 
	Exception^ errorInfo
)
public TraceContextRecord (
	String category, 
	String msg, 
	boolean isWarning, 
	Exception errorInfo
)
public function TraceContextRecord (
	category : String, 
	msg : String, 
	isWarning : boolean, 
	errorInfo : Exception
)
Not applicable.

Parameters

category

The trace category that receives the message.

msg

The trace message.

isWarning

true if the method associated with the TraceContextRecord is the Warn method; false if the tracing method is the Write method.

errorInfo

A Exception object that contains additional error information.

Every call to the System.Web.TraceContext.Write and System.Web.TraceContext.Warn methods generates a TraceContextRecord object that is added to the TraceContextEventArgs.TraceRecords messages collection. The Warn method call sets the IsWarning property to true, while the Write method calls set it to false.

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, 2.0

Community Additions

ADD
Show: