Saves the form to the specified Uniform Resource Locator (URL).
expression.SaveAs(ByVal bstrFileUrl As String)
expression Required. An expression that returns a reference to an XDocument object.
bstrFileUrl Required String. The URL address that the form should be saved to.
Security Level
3: Can be accessed only by fully trusted forms.
Remarks
The SaveAs method will return an error if called from a form that is not fully trusted.
Note The URL that the form is saved to must be in the same domain as the form that calls the SaveAs method.
Example
In the following example, the SaveAs method of the XDocument object is used to save a form:
XDocument.SaveAs("C:\MyForm.xml");