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


IMapDocument.Close Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDocument Interface > IMapDocument.Close Method
ArcGIS Developer Help

IMapDocument.Close Method

Close the map document.

[Visual Basic .NET]
Public Sub Close ( _
)
[C#]
public void Close (
);
[C++]
HRESULT Close(
void
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Closes the MapDocument. This sets the DocumentFilename property to an empty string and resets the ActiveView, PageLayout, Map, MapCount, Printer and Thumbnail properties.

See Also

IMapDocument Interface

.NET Samples

Synchronized MapControl and PageLayoutControl application Save a layer file in a MapControl application Simple dynamic display application Schematics Engine application Temporal statistics Temporal statistics