asp.net.ph

TraceSection Class

System.Web.Configuration Namespace


.NET Framework version 2.0

Configures the ASP.NET trace service. This class cannot be inherited.

TraceSection Class Members

Collapse   Constructors

Visibility Constructor Parameters
public TraceSection ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public Enabled Boolean [ Get , Set ]
public LocalOnly Boolean [ Get , Set ]
public MostRecent Boolean [ Get , Set ]
public PageOutput Boolean [ Get , Set ]
public RequestLimit Int32 [ Get , Set ]
public TraceMode TraceDisplayMode [ Get , Set ]
public WriteToDiagnosticsTrace Boolean [ Get , Set ]

Remarks

The TraceSection class provides a way to programmatically access and modify the trace section of a configuration file.

The trace section configures the ASP.NET trace functionality and controls how trace results are gathered, stored, and displayed.

When tracing is enabled, each page request generates trace messages that can be appended to the page output or stored in an application trace log. You can use the ASP.NET trace viewer ( Trace.axd ) to view the contents of the trace log.

NOTE: The trace element is allowed in the system.web section of the configuration hierarchy in the Machine.config file and the Web.config files. It is not allowed in configuration files of Web subdirectories.

See Also

ASP.NET Configuration   <trace> Section   TraceDisplayMode Enumeration   ASP.NET Trace Functionality Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph