ArcObjects Library Reference (Framework)  

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
);
[C#]

Optional Values

saveAsPath   Optional, default value of .
saveAsCopy   Supply false as a default value.

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