AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ObjectXMLSerializer<(Of <(<'T>)>)>..::..Save Method (T, String, SerializedFormat)

Saves an object to an XML file using a specified serialized format.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static void Save(
	T serializableObject,
	string path,
	SerializedFormat serializedFormat
)

Parameters

serializableObject
Type: T
Serializable object to be saved to file.
path
Type: String
Path of the file to save the object to.
serializedFormat
Type: AdvantageCMS.Core.Utils..::..SerializedFormat
XML serialized format used to save the object.

Examples


C#
SerializableObject serializableObject = new SerializableObject();
ObjectXMLSerializer<SerializableObject>.Save(serializableObject, @"C:\XMLObjects.xml", SerializedFormat.Binary);