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


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

IMapServer2.MapName Property

Name of the map (data frame) as indicated by the index. The first beginning with 0.

[Visual Basic .NET]
Public Function get_MapName ( _
    ByVal Index As Integer _
) As String
[C#]
public string get_MapName (
    int Index
);
[C++]
HRESULT get_MapName(
  long Index,
  System.String* MapName
);
[C++]
Parameters
Index [in]

Index is a parameter of type long MapName [out, retval]
MapName is a parameter of type BSTR*

Product Availability

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

Remarks

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

See Also

IMapServer2 Interface