Click or drag to resize
DataExtensionsToXML Method (IEnumerable, String, Boolean)
Returns XML representation of current instance of IEnumerable.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
public static string ToXML(
	this IEnumerable collection,
	string rootName,
	bool binary
)

Parameters

collection
Type: System.CollectionsIEnumerable
Collection to serialize
rootName
Type: SystemString
Name of the root element
binary
Type: SystemBoolean
If true, binary data is exported, if false, binary columns remain empty

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable. 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