Share via


_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

_XDocument3.Save()

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
();}

See also

Reference

_XDocument4 interface

_XDocument4 members

Save overload

Microsoft.Office.Interop.InfoPath namespace