Share via


XDocument.Save Method

InfoPath Developer Reference

Saves the form to the Uniform Resource Locator (URL) that it is currently associated with.

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.Save

expression   An expression that returns a XDocument object.

Return Value
Nothing

Remarks

The Save method will return an error if called from a form that is not fully trusted.

Security Level 3: Can be accessed only by fully trusted forms.

Example

In the following example, the Save method of the XDocument object is used to save a form:

JScript
  XDocument.Save();

See Also