
514
|
Chapter 23: The System.Web Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Returned By
HttpContext.Trace, System.Web.UI.Page.Trace, System.Web.UI.UserControl.Trace
TraceMode
System.Web (system.web.dll)
serializable
enum
This enumeration is used to set the TraceMode property of the TraceContext class. It speci-
fies whether entries in the trace log will be listed alphabetically (SortByCategory)or
chronologically (SortByTime).
Hierarchy
System.Object ➝ System.ValueType ➝ System.Enum(System.IComparable, System.IFor-
mattable, System.IConvertible)
➝ TraceMode
Returned By
TraceContext.TraceMode
Passed To
TraceContext.TraceMode, System.Web.UI.Page.TraceModeValue
public bool IsEnabled{set; get; }
public TraceMode TraceMode{set; get; }
// Public Instance Methods
public void Warn(string message);
public void Warn(string category, string message);
public void Warn(string category, string message, Exception errorInfo);
public void Write(string message);
public void Write(string category, string message);
public void Write(string category, string message, Exception errorInfo);
}
public enum TraceMode {
SortByTime = 0,
SortByCategory = 1,
Default = 2
}