XmlUtilsSerializeNameValuePairs Method (XmlWriter, DictionaryString, String, Boolean, Boolean, String) |
Serializes the name value pairs passed in to the writer passed in in elements of the name elementName. By default, the key is written as attribute 'Name'
and the value is written as attribute 'Value'.
Namespace:
SD.LLBLGen.Pro.Core.Xml
Assembly:
SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.1.0.0 (5.1.0)
Syntax public static void SerializeNameValuePairs(
XmlWriter writer,
Dictionary<string, string> toSerialize,
bool sortByKey,
bool wrapValueInCData,
string elementName
)
Public Shared Sub SerializeNameValuePairs (
writer As XmlWriter,
toSerialize As Dictionary(Of String, String),
sortByKey As Boolean,
wrapValueInCData As Boolean,
elementName As String
)
Parameters
- writer
- Type: System.XmlXmlWriter
The writer. - toSerialize
- Type: System.Collections.GenericDictionaryString, String
To serialize. - sortByKey
- Type: SystemBoolean
if true, the output is sorted by key, ascending - wrapValueInCData
- Type: SystemBoolean
if true, the value is placed in a CData block as the value of the element, instead of an attribute 'Value' - elementName
- Type: SystemString
Name of the element.
See Also