Share via


DumpSimpleList Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Dumps a SimpleList Object object to the output stream with no indentation.

This API is not CLS-compliant. 

Namespace:  Microsoft.CommerceServer.Runtime.Diagnostics
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Sub DumpSimpleList ( _
    list As ISimpleList, _
    output As HtmlTextWriter, _
    name As String _
)
'Usage
Dim list As ISimpleList
Dim output As HtmlTextWriter
Dim name As String

DumpUtils.DumpSimpleList(list, output, _
    name)
[CLSCompliantAttribute(false)]
public static void DumpSimpleList(
    ISimpleList list,
    HtmlTextWriter output,
    string name
)
[CLSCompliantAttribute(false)]
public:
static void DumpSimpleList(
    ISimpleList^ list, 
    HtmlTextWriter^ output, 
    String^ name
)
public static function DumpSimpleList(
    list : ISimpleList, 
    output : HtmlTextWriter, 
    name : String
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The output or name is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Use this method to dump a SimpleList Object object to the output stream with no indentation.

Examples

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")

Permissions

See Also

Reference

DumpUtils Class

DumpUtils Members

Microsoft.CommerceServer.Runtime.Diagnostics Namespace