AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

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

Saves an object to an XML file located in a specified isolated storage area, using a specified serialized format.

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

Syntax


public static void Save(
	T serializableObject,
	string fileName,
	IsolatedStorageFile isolatedStorageDirectory,
	SerializedFormat serializedFormat
)

Parameters

serializableObject
Type: T
Serializable object to be saved to file.
fileName
Type: String
Name of the file in the isolated storage area to save the object to.
isolatedStorageDirectory
Type: IsolatedStorageFile
Isolated storage area directory containing the XML 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, "XMLObjects.xml", IsolatedStorageFile.GetUserStoreForAssembly(), SerializedFormat.Binary);