[]
        
Serializes an object using the ISerializeData interface.
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
| Type | Name | Description | 
|---|---|---|
| object | o | Object to serialize  | 
    
| string | elementName | Name of XML element  | 
    
| XmlTextWriter | w | XmlTextWriter object to which to save  | 
    
| Type | Description | 
|---|---|
| bool | true if successful; otherwise, false  | 
    
Serializes an object using the ISerializeData interface.
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
| 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  | 
    
| Type | Description | 
|---|---|
| bool | true if successful; otherwise, false  |