[]
        
(Showing Draft Content)

FarPoint.Win.Serializer.LoadObject

LoadObject Method

LoadObject(Type, string, string)

Loads an object from a file previously saved with Serializer.SaveObject.

Declaration
public static object LoadObject(Type type, string fileName, string elementName)
Public Shared Function LoadObject(type As Type, fileName As String, elementName As String) As Object
Parameters
Type Name Description
Type type

Type of object

string fileName

Path and name of file from which to load the object

string elementName

Name of root element node for object

Returns
Type Description
object

LoadObject(Type, string, string, Assembly)

Loads an object from a file previously saved with Serializer.SaveObject.

Declaration
public static object LoadObject(Type type, string fileName, string elementName, Assembly callingAssembly)
Public Shared Function LoadObject(type As Type, fileName As String, elementName As String, callingAssembly As Assembly) As Object
Parameters
Type Name Description
Type type

Type of object

string fileName

Path and name of file from which to load the object

string elementName

Name of root element node for object

Assembly callingAssembly

Calling assembly

Returns
Type Description
object

LoadObject(Type, Stream, string)

Loads an object from a stream previously saved with Serializer.SaveObject.

Declaration
public static object LoadObject(Type type, Stream stream, string elementName)
Public Shared Function LoadObject(type As Type, stream As Stream, elementName As String) As Object
Parameters
Type Name Description
Type type

Type of object

Stream stream

Stream from which to load the object

string elementName

Name of root element node for object

Returns
Type Description
object

LoadObject(Type, Stream, string, Assembly)

Loads an object from a stream previously saved with Serializer.SaveObject.

Declaration
public static object LoadObject(Type type, Stream stream, string elementName, Assembly callingAssembly)
Public Shared Function LoadObject(type As Type, stream As Stream, elementName As String, callingAssembly As Assembly) As Object
Parameters
Type Name Description
Type type

Type

Stream stream

Stream from which to load the object

string elementName

Name of root element node for object

Assembly callingAssembly

Calling assembly

Returns
Type Description
object