TraceMessages Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets an array containing the trace messages that describe the scoring of the content items.
Namespace: Microsoft.CommerceServer.Runtime.Targeting
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public ReadOnly Property TraceMessages As StringCollection()
'Usage
Dim instance As ContentSelector
Dim value As StringCollection()
value = instance.TraceMessages
public StringCollection[] TraceMessages { get; }
public:
property array<StringCollection^>^ TraceMessages {
array<StringCollection^>^ get ();
}
public function get TraceMessages () : StringCollection[]
Property Value
Type: array<System.Collections.Specialized..::.StringCollection>[]()[]
A StringCollection array of trace messages that describe the scoring of the content items.
Remarks
Gets an array containing the trace messages that describe the scoring of the content items. This property will always return nullNothingnullptra null reference (Nothing in Visual Basic) if the TraceMode property is not set to true.
Examples
Response.Write("<h1>;Trace Messages</h1>");
int index = 0;
foreach (StringCollection messages in cso.TraceMessages)
{
Response.Write("<h2>Content item row index=" + index++ + "</h2>");
foreach (string message in messages)
{
Response.Write(message);
Response.Write("<br>");
}
}
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.