DumpUtils.DumpSimpleList (ISimpleList, HtmlTextWriter, String) Method (BCL)
Use this method to dump a Commerce.SimpleList object to the output stream with no indentation.
Definition
[Visual Basic .NET]
Public Shared Sub DumpSimpleList( _ByVallist As Microsoft.CommerceServer.Runtime.ISimpleList, _
ByValoutput As System.Web.UI.HtmlTextWriter, _
ByValname As System.String _
)
[C#]
public static void DumpSimpleList(Microsoft.CommerceServer.Runtime.ISimpleListlist,
System.Web.UI.HtmlTextWriteroutput,
System.Stringname);
Parameters
[Visual Basic .NET]
- list
The SimpleList to be dumped. - output
The output stream. - name
The name for display.
[C#]
- list
The SimpleList to be dumped. - output
The output stream. - name
The name for display.
Example
To supply the DumpSimpleList method with an HtmlTextWriter object that wraps the ASP .NET Response object, you must supply an output parameter.
[C#]
using Microsoft.CommerceServer.Runtime.Diagnostics;
SimpleList list = new SimpleListClass();
object objTemp = "New Value Number One";
list.Add(ref objTemp);
DumpUtils.DumpSimpleList(list, new HtmlTextWriter(Response.Output), "Product");
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Runtime
Imports Microsoft.CommerceServer.Runtime.Diagnostics
Dim list As New SimpleList()
list.Add("New Value Number one")
Call DumpUtils.DumpSimpleList(list, New HtmlTextWriter(Response.Output), "My SimpleList")
Requirements
Namespace: Microsoft.CommerceServer.Runtime.Diagnostics
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
Copyright © 2005 Microsoft Corporation.
All rights reserved.