TraceContextRecord.TraceContextRecord Constructor
.NET Framework 3.0
Initializes a new instance of the TraceContextRecord class.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
TraceContextRecord Members
System.Web Namespace
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.
Reference
TraceContextRecord ClassTraceContextRecord Members
System.Web Namespace
Other Resources
ASP.NET TracingCommunity Additions
ADD
Show: