This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IA > IApplication Interface > IApplication.SaveAsDocument Method (ArcObjects .NET 10.5 SDK) |
Saves the document that is currently open in this application to a different file.
[Visual Basic .NET] Public Sub SaveAsDocument ( _ [ByVal saveAsPath As String], _ [ByVal saveAsCopy As Boolean] _ )
[C#] public void SaveAsDocument ( string saveAsPath, bool saveAsCopy );
Optional Values
saveAsPath is a string representing a new path and filename for the document that is being saved. [Optional]
saveAsCopy specify True if you want to save a copy of the document to a new filename but keep the original document open in the application; otherwise False. [Optional]
Note, this method does not work in ArcCatalog.