[]
Loads an object from a file previously saved with Serializer.SaveObject.
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
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 |
Type | Description |
---|---|
object |
Loads an object from a file previously saved with Serializer.SaveObject.
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
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 |
Type | Description |
---|---|
object |
Loads an object from a stream previously saved with Serializer.SaveObject.
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
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 |
Type | Description |
---|---|
object |
Loads an object from a stream previously saved with Serializer.SaveObject.
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
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 |
Type | Description |
---|---|
object |