Share via


_XDocument3.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 _XDocument3

instance.Save()
void Save()

Implements

_XDocument2.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

_XDocument3 Interface

_XDocument3 Members

Save Overload

Microsoft.Office.Interop.InfoPath Namespace