Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / XmlUtility Class / Serialize Method / Serialize(Object,Encoding) Method
The object to serialize.
The encoding to use for XML document
Version
Serialize(Object,Encoding) Method
Makes XML out of an object.
Syntax
public static byte[] Serialize( 
   object objectToSerialize,
   Encoding encoding
)

Parameters

objectToSerialize
The object to serialize.
encoding
The encoding to use for XML document

Return Value

An XML string representing the object.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also