AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

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

Loads an object from 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 T Load(
	string fileName,
	IsolatedStorageFile isolatedStorageDirectory,
	SerializedFormat serializedFormat
)

Parameters

fileName
Type: String
Name of the file in the isolated storage area to load the object from.
isolatedStorageDirectory
Type: IsolatedStorageFile
Isolated storage area directory containing the XML file to load the object from.
serializedFormat
Type: AdvantageCMS.Core.Utils..::..SerializedFormat
XML serialized format used to load the object.

Return Value

Object loaded from an XML file located in a specified isolated storage area, using a specified serialized format.

Examples


C#
serializableObject = ObjectXMLSerializer<SerializableObject>.Load("XMLObjects.xml", IsolatedStorageFile.GetUserStoreForAssembly(), SerializedFormat.Binary);