AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

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

Loads an object from an XML file using a specified serialized format.

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

Syntax


public static T Load(
	string path,
	SerializedFormat serializedFormat
)

Parameters

path
Type: String
Path of the 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 using the specified serialized format.

Examples


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