Click or drag to resize
IDataContractSerializerServiceTSerialize Method
Serializes object instance to XML string representation.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
string Serialize(
	T obj,
	XmlWriterSettings settings = null
)

Parameters

obj
Type: T
Input object for serialization.
settings (Optional)
Type: System.XmlXmlWriterSettings
Settings used for XmlWriter. If this is null, default settings are used.

Return Value

Type: String
Serialized object obj to XML string representation.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when obj is null.
See Also