[]
        
(Showing Draft Content)

FarPoint.Win.Serializer.SerializeData

SerializeData Method

SerializeData(object, string, XmlTextWriter)

Serializes an object using the ISerializeData interface.

Declaration
public static bool SerializeData(object o, string elementName, XmlTextWriter w)
Public Shared Function SerializeData(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

SerializeData(object, string, XmlTextWriter, bool)

Serializes an object using the ISerializeData interface.

Declaration
public static bool SerializeData(object o, string elementName, XmlTextWriter w, bool saveDataSource)
Public Shared Function SerializeData(o As Object, elementName As String, w As XmlTextWriter, saveDataSource As Boolean) 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

bool saveDataSource

True to save the data source, false otherwise

Returns
Type Description
bool

true if successful; false otherwise