AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

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

Loads an object from an XML file in Document format, located in a specified isolated storage area.

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

Syntax


public static T Load(
	string fileName,
	IsolatedStorageFile isolatedStorageDirectory
)

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.

Return Value

Object loaded from an XML file in Document format located in a specified isolated storage area.

Examples


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