Saves the object to XML.
            
            
            
            
            
            
            
            'Declaration
 
Protected Overridable Function OnSerialize( _
   ByVal  As XmlTextWriter _
) As Boolean
             
        
            
            'Usage
 
Dim instance As MenuItem
Dim w As XmlTextWriter
Dim value As Boolean
 
value = instance.OnSerialize(w)
             
        
            
            protected virtual bool OnSerialize( 
   XmlTextWriter 
)
             
        
             
        
            Parameters
- w
 
- XmlTextWriter object used to save the object
 
            
            Return Value
true if successful; false otherwise
 
            
            
            
            
            Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6