TraceContext.Warn Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Writes trace information to the trace log. Unlike Write, all warnings appear in the log as red text.

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

NameDescription
System_CAPS_pubmethodWarn(String)

Writes a trace message to the trace log. All warnings appear in the log as red text.

System_CAPS_pubmethodWarn(String, String)

Writes trace information to the trace log, including any user-defined categories and trace messages. All warnings appear in the log as red text.

System_CAPS_pubmethodWarn(String, String, Exception)

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.

Return to top
Show: