_XDocument4.Save method
Saves the form to the Uniform Resource Locator (URL) that it is currently associated with.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
Sub Save
'Usage
Dim instance As _XDocument4
instance.Save()
void Save()
Implements
Remarks
The Save method will return an error if called from a form that is not fully trusted.
Examples
if(thisXDocument.IsNew){thisXDocument.SaveAs("c:\\myforms\\form1.xml");}else{thisXDocument.
Save
();}