IContentList::get_TraceMode, put_TraceMode

Ee798549.c++_off(en-US,CS.10).gifEe798549.vb_on(en-US,CS.10).gif

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

Definition

Get method:

HRESULT IContentList::get_TraceMode(VARIANT_BOOL*TraceMode);

Put method:

HRESULT IContentList::put_TraceMode(VARIANT_BOOLTraceMode);

Parameters

TraceMode

[out,retval] When getting the property, a pointer to a VARIANT_BOOL used to return the current trace mode setting. A value of True enables score tracing. A value of False suppresses score tracing.
[in] When putting the property, a VARIANT_BOOL that contains a new trace mode setting. A value of True enables score tracing. A value of False suppresses score tracing.

Return Values

These methods return an HRESULT indicating whether or not they completed successfully. See the Error Values section for more details.

Error Values

This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

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.

See Also

ContentList Object


All rights reserved.