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


IApplication.SaveDocument 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.SaveDocument Method
ArcGIS Developer Help

IApplication.SaveDocument Method

Saves the document that is currently open in this application.

[Visual Basic .NET]
Public Sub SaveDocument ( _
    [ByVal saveAsPath As String] _
)
[C#]
public void SaveDocument (
    string saveAsPath
);

Product Availability

Available with ArcGIS Desktop.

Description

saveAsPath is a string representing a path and filename for the document that is being saved. [Optional]

Remarks

If this document is a new document that has not been saved yet and a saveAsPath is not specified, the Save As dialog will be displayed.

See Also

IApplication Interface