Show All

# Save Method

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

expression.Save()

expression Required. An expression that returns a reference to an XDocument object.

## Security Level

3: Can be accessed only by fully trusted forms.

## Remarks

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

## Example

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

    XDocument.Save();

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp