Partager via


_XDocument3.Save - Méthode

Enregistre le formulaire dans l’URL (Uniform Resource Locator) qui lui est actuellement associée.

Espace de noms :  Microsoft.Office.Interop.InfoPath
Assembly :  Microsoft.Office.Interop.InfoPath (dans Microsoft.Office.Interop.InfoPath.dll)

Syntaxe

'Déclaration
Sub Save
'Utilisation
Dim instance As _XDocument3

instance.Save()
void Save()

Implémentations

_XDocument2.Save()

Remarques

La méthode Save renvoie une erreur si elle est appelée à partir d'un formulaire qui ne dispose pas d'une autorisation totale.

Exemples

if(thisXDocument.IsNew)
{
thisXDocument.SaveAs("c:\\myforms\\form1.xml");
}
else
{
thisXDocument.Save();
}

Voir aussi

Référence

_XDocument3 interface

_XDocument3 - Membres

Save - Surcharge

Microsoft.Office.Interop.InfoPath - Espace de noms