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

IMapDocument.DocumentFilename Property (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.DocumentFilename Property
ArcGIS Developer Help

IMapDocument.DocumentFilename Property

The map document filename that the MapDocument coclass is linked to.

[Visual Basic .NET]
Public ReadOnly Property DocumentFilename As String
public string DocumentFilename {get;}
HRESULT get_DocumentFilename(
  System.String* sDocument
sDocument [out, retval]

sDocument is a parameter of type BSTR*

Product Availability

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


Returns the DocumentFilename of the last map document that was successfully opened with the Open method. An empty string will be returned if no document has been opened.

See Also

IMapDocument Interface