IDataContractSerializerServiceTSerialize Method |
Serializes object instance to XML string representation.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax 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:
StringSerialized object
obj to XML string representation.
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when obj is null. |
See Also