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


IMapDocument.DocumentFilename Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMapDocument.DocumentFilename Property

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

[Visual Basic .NET]
Public ReadOnly Property DocumentFilename As String
[C#]
public string DocumentFilename {get;}
[C++]
HRESULT get_DocumentFilename(
  System.String* sDocument
);
[C++]

Parameters sDocument [out, retval]
sDocument is a parameter of type BSTR*

Product Availability

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

Description

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