Spread Windows Forms 7.0 Product Documentation
LoadObject(Type,String,String,Assembly) Method
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > Serializer Class > LoadObject Method : LoadObject(Type,String,String,Assembly) Method


type
Type of object
fileName
Path and name of file from which to load the object
elementName
Name of root element node for object
callingAssembly
Calling assembly

Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function LoadObject( _
   ByVal type As Type, _
   ByVal fileName As String, _
   ByVal elementName As String, _
   ByVal callingAssembly As Assembly _
) As Object
Visual Basic (Usage)Copy Code
Dim type As Type
Dim fileName As String
Dim elementName As String
Dim callingAssembly As Assembly
Dim value As Object
 
value = Serializer.LoadObject(type, fileName, elementName, callingAssembly)
C# 
public static object LoadObject( 
   Type type,
   string fileName,
   string elementName,
   Assembly callingAssembly
)

Parameters

type
Type of object
fileName
Path and name of file from which to load the object
elementName
Name of root element node for object
callingAssembly
Calling assembly

Return Value

Object containing newly deserialized instance; null if unsuccessful

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.