Sitecore 5.0 API

MainUtil.Warn Method 

Writes a warning message to the trace.

[Visual Basic]
Public Shared Sub Warn( _
   ByVal message As String _
)
[C#]
public static void Warn(
   string message
);

Parameters

message
A message string.

Remarks

The message is written both to the Sitecore trace and to the current context trace.

Example

  MainUtil.Warn("System is going down in 3 minutes...");

See Also

MainUtil Class | Sitecore Namespace | Trace | Trace