Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TraceContextRecord Constructor
Collapse the table of content
Expand the table of content

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


Type: System.String

The trace category that receives the message.

Type: System.String

The trace message.

Type: System.Boolean

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

Type: System.Exception

A Exception object that contains additional error information.

Every call to the TraceContext.Write and 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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft