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

IMapServer3.DefaultMapName Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServer3 Interface > IMapServer3.DefaultMapName Property
ArcGIS Developer Help

IMapServer3.DefaultMapName Property

Name of the document's active map (data frame).

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

MapName is a parameter of type BSTR*

Product Availability

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


If two (or more) data frames have the same name, Map Server adds a distinctive number at the end of the second name. E.g. Layers and Layers2.

See Also

IMapServer3 Interface