This document is archived and information here might be outdated.  Recommended version.


IApplication.SaveAsDocument Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IA > IApplication Interface > IApplication.SaveAsDocument Method
ArcGIS Developer Help

IApplication.SaveAsDocument Method

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
);

Product Availability

Available with ArcGIS Desktop.

Description

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]

Remarks

If no saveAsPath is specified, the Save As dialog will be displayed.

Note, this method does not work in ArcCatalog.

See Also

IApplication Interface