Serializes any object to XML.

Namespace: Nehta.VendorLibrary.Common
Assembly: Nehta.VendorLibrary.Common (in Nehta.VendorLibrary.Common.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static XmlDocument SerializeToXml(
	this Object report,
	string documentElementName
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function SerializeToXml ( _
	report As Object, _
	documentElementName As String _
) As XmlDocument
Visual C++
[ExtensionAttribute]
public:
static XmlDocument^ SerializeToXml(
	Object^ report, 
	String^ documentElementName
)

Parameters

report
Type: System..::..Object
The object to serialize.
documentElementName
Type: System..::..String
The xml document element name.

Return Value

Xml of the serialized object.

See Also