[]
        
(Showing Draft Content)

FarPoint.Win.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; false otherwise

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 containing the implementation of the object

Returns
Type Description
bool

true if successful; false otherwise

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; false otherwise

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 containing the implementation of the object

Returns
Type Description
bool

true if successful; false otherwise

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 containing 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; false otherwise

SerializeObject(object, Type, string, XmlTextWriter, Assembly, object[], Hashtable, 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, Hashtable restrictedNamedStyle, object addedNamedStyle)
Public Shared Function SerializeObject(o As Object, saveInterface As Type, elementName As String, w As XmlTextWriter, callingAssembly As Assembly, args As Object(), restrictedNamedStyle As Hashtable, addedNamedStyle 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 containing the implementation of the object

object[] args

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

Hashtable restrictedNamedStyle
object addedNamedStyle
Returns
Type Description
bool

true if successful; false otherwise

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 containing 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; false otherwise

SerializeObject(object, Type, string, XmlTextWriter, Assembly, object[], bool, Hashtable, 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, bool saveType, Hashtable restrictedNamedStyles, object addedNamedStyles)
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, restrictedNamedStyles As Hashtable, addedNamedStyles 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 containing the implementation of the object

object[] args

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

bool saveType

Whether to save

Hashtable restrictedNamedStyles

Arguments to pass to method interface.Serialize method

object addedNamedStyles

Arguments to pass to method interface.Serialize method

Returns
Type Description
bool

true if successful; false otherwise