_XDocument3.SaveAs(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Saves the form to the specified Uniform Resource Locator (URL).
public:
void SaveAs(System::String ^ bstrFileUrl);
public void SaveAs (string bstrFileUrl);
abstract member SaveAs : string -> unit
Public Sub SaveAs (bstrFileUrl As String)
Parameters
- bstrFileUrl
- String
The URL address that the form should be saved to.
Implements
Examples
if(thisXDocument.IsNew)
{
thisXDocument.<span class="label">SaveAs</span>("c:\\myforms\\form1.xml");
}
else
{
thisXDocument.Save();
}
if(thisXDocument.IsNew)
{
thisXDocument.<span class="label">SaveAs</span>("c:\\myforms\\form1.xml");
}
else
{
thisXDocument.Save();
}
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.
Applies to
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per