This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDocument Interface > IMapDocument.DocumentFilename Property (ArcObjects .NET 10.4 SDK) |
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(
BSTR* sDocument
);
[C++]
Parameters sDocument [out, retval] sDocument is a parameter of type BSTR
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.