Share via


ContentList.TraceMode Property (PIA)

The TraceMode property is a read/write Boolean that controls whether score tracing is enabled or suppressed.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Caching
…
Public Property TraceMode As Boolean

[C#]

using Microsoft.CommerceServer.Interop.Caching;
…
public bool TraceMode {get; set }

Property Value

[C#]

A bool used to return the current trace mode setting. A value of true enables score tracing. A value of false suppresses score tracing.

Exceptions

This property may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

Remarks

This property acts as a global switch to control whether or not score tracing is performed. If it is set to true, a SimpleList object of trace messages will be constructed that can be accessed through the TraceMessages property. If it is set to false, score tracing is suppressed.

When you use score tracing, you will notice a dramatic negative effect on performance; score tracing should not be used under normal circumstances. However, it can be useful when you are attempting to troubleshoot a scoring-related issue.

Requirements

Namespace: Microsoft.CommerceServer.Interop.Caching

Platforms: Windows 2000, Windows Server 2003

Assembly: cachecomplib (in cachecomplib.dll)

See Also

ContentList Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.