SP.DataConvert.writeDictionaryToXml(writer, dict, topLevelElementTagName, keys, serializationContext) Method

Applies to: SharePoint Foundation 2010

Writes the specified dictionary data to a SP.XmlWriter Class.

SP.DataConvert.writeDictionaryToXml(writer, dict, topLevelElementTagName, keys, serializationContext);

Parameters

Type: SP.XmlWriter

  • dict
    A collection of keys and values that is used as the source of the data conversion.

Type: Dictionary

  • topLevelElementTagName
    The XML element tag name to write to the SP.XmlWriter Class argument.

Type: String

  • keys
    An array of String used to determine which data in the dictionary object is written to the passed SP.XmlWriter Class.

Type: Array

  • serializationContext
    An object that stores the client object path in the client hierarchy, so that the client object can be serialized and deserialized.

Type: SP.SerializationContext

Applies To

SP.DataConvert Class

Remarks

This method writes the data to the SP.XmlWriter Class object only if each key in the keys collection parameter exists in the dictionary.

See Also

Reference

SP.DataConvert Methods

SP Namespace