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


r
XmlNodeReader from which to read the XML
type
Type
saveInterface
Serialization interface to use
callingAssembly
Calling assembly object

Glossary Item Box

Creates an object serialized into a specified XML node reader of a specified type, interface, and calling assembly.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function CreateObjectInstanceAndDeserialize( _
   ByVal r As XmlNodeReader, _
   ByVal type As Type, _
   ByVal saveInterface As Type, _
   ByVal callingAssembly As Assembly _
) As Object
Visual Basic (Usage)Copy Code
Dim r As XmlNodeReader
Dim type As Type
Dim saveInterface As Type
Dim callingAssembly As Assembly
Dim value As Object
 
value = Serializer.CreateObjectInstanceAndDeserialize(r, type, saveInterface, callingAssembly)
C# 
public static object CreateObjectInstanceAndDeserialize( 
   XmlNodeReader r,
   Type type,
   Type saveInterface,
   Assembly callingAssembly
)

Parameters

r
XmlNodeReader from which to read the XML
type
Type
saveInterface
Serialization interface to use
callingAssembly
Calling assembly object

Return Value

New instance of the object previously saved, or null if the object cannot be created

Remarks

This method creates an object that was saved into an XML node with a SerializeObject method.

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.