AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ObjectXMLSerializer<(Of <(<'T>)>)>..::..Load Method (String, IsolatedStorageFile, array<Type>[]()[][])

Loads an object from an XML file in Document format, located in a specified isolated storage area, and supplying extra data types to enable deserialization of custom types within the object.

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

Syntax


public static T Load(
	string fileName,
	IsolatedStorageFile isolatedStorageDirectory,
	Type[] extraTypes
)

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.
extraTypes
Type: array<Type>[]()[][]
Extra data types to enable deserialization of custom types within 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(), new Type[] { typeof(MyCustomType) });