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