DumpUtils.DumpDictionary (IDictionary, HtmlTextWriter, String) Method (BCL)
Use this method to dump a Commerce.Dictionary object to the output stream with no indentation.
Definition
[Visual Basic .NET]
Public Shared Sub DumpDictionary( _ByVald As Microsoft.CommerceServer.Runtime.IDictionary, _
ByValoutput As System.Web.UI.HtmlTextWriter, _
ByValname As System.String _
)
[C#]
public static void DumpDictionary(Microsoft.CommerceServer.Runtime.IDictionaryd,
System.Web.UI.HtmlTextWriteroutput,
System.Stringname);
Parameters
[Visual Basic .NET]
- d
Dictionary to be dumped. - output
The HtmlTextWriter object output stream. - name
The dictionary name for display.
[C#]
- d
Dictionary to be dumped. - output
The HtmlTextWriter object output stream. - name
The dictionary name for display.
Example
To supply the DumpDataDictionary method with an HtmlTextWriter object that wraps the ASP .NET Response object, you must supply an output parameter.
[C#]
using Commerce = Microsoft.CommerceServer.Runtime;
using Microsoft.CommerceServer.Runtime.Diagnostics;
Commerce.Dictionary dict = new Commerce.DictionaryClass();
dict["testKey"] = "testValue";
DumpUtils.DumpDictionary(dict, new HtmlTextWriter(Response.Output), "My Dictionary Object");
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Runtime.Diagnostics
Dim dict As New Microsoft.CommerceServer.Runtime.DictionaryClass()
dict.Value("testKey") = "testValue"
Call DumpUtils.DumpDictionary(dict, New HtmlTextWriter(Response.Output), "My Dictionary Object")
Requirements
Namespace: Microsoft.CommerceServer.Runtime.Diagnostics
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.