Returns the content of a object as a XML document.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static string ObjectToXmlString(
	Object value
)

Parameters

value
Type: System..::.Object
A object.

Return Value

A XML string corresponding to the content of a object.

Remarks

The method returns a value (content) of a object as a XML string, which is created by serialization of the object. XConvert..::.ObjectToXmlString(Object, Boolean)

Exceptions

ExceptionCondition
System..::.ArgumentNullException value is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also