[]
        
(Showing Draft Content)

FarPoint.Web.Spread.Model.Serializer.SerializeObject

SerializeObject Method

SerializeObject(object, string, XmlTextWriter)

Serializes an object to XML using the ISerializeSupport interface.

Declaration
public static bool SerializeObject(object o, string elementName, XmlTextWriter w)
Public Shared Function SerializeObject(o As Object, elementName As String, w As XmlTextWriter) As Boolean
Parameters
Type Name Description
object o

Object to serialize

string elementName

Name of XML element

XmlTextWriter w

XmlTextWriter object to which to save

Returns
Type Description
bool

true if successful; otherwise, false

SerializeObject(object, string, XmlTextWriter, Assembly)

Serializes an object to XML using the ISerializeSupport interface.

Declaration
public static bool SerializeObject(object o, string elementName, XmlTextWriter w, Assembly callingAssembly)
Public Shared Function SerializeObject(o As Object, elementName As String, w As XmlTextWriter, callingAssembly As Assembly) As Boolean
Parameters
Type Name Description
object o

Object to serialize

string elementName

Name of XML element

XmlTextWriter w

XmlTextWriter object to which to save

Assembly callingAssembly

Specifies the assembly that contains the implementation of the object

Returns
Type Description
bool

true if successful; otherwise, false

SerializeObject(object, Type, string, XmlTextWriter)

Serializes an object to XML using the ISerializeSupport interface.

Declaration
public static bool SerializeObject(object o, Type saveInterface, string elementName, XmlTextWriter w)
Public Shared Function SerializeObject(o As Object, saveInterface As Type, elementName As String, w As XmlTextWriter) As Boolean
Parameters
Type Name Description
object o

Object to serialize

Type saveInterface

Serialization interface to use

string elementName

Name of XML element

XmlTextWriter w

XmlTextWriter object to which to save

Returns
Type Description
bool

true if successful; otherwise, false

SerializeObject(object, Type, string, XmlTextWriter, Assembly)

Serializes an object to XML using the ISerializeSupport interface.

Declaration
public static bool SerializeObject(object o, Type saveInterface, string elementName, XmlTextWriter w, Assembly callingAssembly)
Public Shared Function SerializeObject(o As Object, saveInterface As Type, elementName As String, w As XmlTextWriter, callingAssembly As Assembly) As Boolean
Parameters
Type Name Description
object o

Object to serialize

Type saveInterface

Serialization interface to use

string elementName

Name of XML element

XmlTextWriter w

XmlTextWriter object to which to save

Assembly callingAssembly

Specifies the assembly that contains the implementation of the object

Returns
Type Description
bool

true if successful; otherwise, false

SerializeObject(object, Type, string, XmlTextWriter, Assembly, object[])

Serializes an object to XML using the ISerializeSupport interface.

Declaration
public static bool SerializeObject(object o, Type saveInterface, string elementName, XmlTextWriter w, Assembly callingAssembly, object[] args)
Public Shared Function SerializeObject(o As Object, saveInterface As Type, elementName As String, w As XmlTextWriter, callingAssembly As Assembly, args As Object()) As Boolean
Parameters
Type Name Description
object o

Object to serialize

Type saveInterface

Serialization interface to use

string elementName

Name of XML element

XmlTextWriter w

XmlTextWriter object to which to save

Assembly callingAssembly

Specifies the assembly that contains the implementation of the object

object[] args

Arguments to pass to saveInterface.Serialize method (including w as first argument)

Returns
Type Description
bool

true if successful; otherwise, false

SerializeObject(object, Type, string, XmlTextWriter, Assembly, object[], bool)

Serializes an object to XML using the ISerializeSupport interface.

Declaration
public static bool SerializeObject(object o, Type saveInterface, string elementName, XmlTextWriter w, Assembly callingAssembly, object[] args, bool saveType)
Public Shared Function SerializeObject(o As Object, saveInterface As Type, elementName As String, w As XmlTextWriter, callingAssembly As Assembly, args As Object(), saveType As Boolean) As Boolean
Parameters
Type Name Description
object o

Object to serialize

Type saveInterface

Serialization interface to use

string elementName

Name of XML element

XmlTextWriter w

XmlTextWriter object to which to save

Assembly callingAssembly

Specifies the assembly that contains the implementation of the object

object[] args

Arguments to pass to saveInterface.Serialize method (including w as first argument)

bool saveType

Whether to save

Returns
Type Description
bool

true if successful; otherwise, false