DataExtensionsToXML Method (IDataContainer, XmlWriter, ListString, Boolean) |
Writes XML representation of selected columns of current instance of
IDataContainer to provided
XmlWriter.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax public static void ToXML(
this IDataContainer data,
XmlWriter xml,
List<string> columns,
bool binary
)
Parameters
- data
- Type: CMS.BaseIDataContainer
IDataContainer to serialize - xml
- Type: System.XmlXmlWriter
XmlWriter instance for outputting data - columns
- Type: System.Collections.GenericListString
Columns which should be written - binary
- Type: SystemBoolean
If true, binary data is exported, if false, binary columns remain empty
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDataContainer. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also