System.Web Namespace TraceContext Class
Writes trace information to the trace log, including any user-defined categories,trace messages, and error information. All warnings appear in the log as red text.
[ VB ]
Overloads Public Sub Warn ( _
ByVal category As String, _
ByVal message As String, _
ByVal errorInfo As Exception _
)
[ C# ]
public void Warn (
string category,
string message,
Exception errorInfo
);
[ C++ ]
public: void Warn (
String* category,
String* message,
Exception* errorInfo
);
[ JScript ]
public function Warn (
category : String,
message : String,
errorInfo : Exception
);
- category
- The trace category that receives the message.
- message
- The trace message to write to the log.
- errorInfo
- An Exception that contains information about the error.
TraceContext Members TraceContext.Warn Overload List