System.Web.TraceContext.Write Method

Writes trace information to the trace log, including a message and any user-defined categories.

Syntax

public void Write (string category, string msg)

Parameters

msg
a string
category
The trace category that receives the message.

Remarks

Every time the erload:System.Web.TraceContext.Write method is called, a System.Web.TraceContext trace message is added to the TraceContextEventArgs.TraceRecords messages collection, which is accessible when you handle the TraceContext.TraceFinished event. The message is added with its TraceContextRecord.IsWarning property set to false and its TraceContextRecord.ErrorInfo property set to null.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0