ArcObjects Library Reference  (Carto)    

IMapServer2.DefaultMapName Property

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

[Visual Basic 6.0]
Property DefaultMapName As String
[Visual Basic .NET]
Public ReadOnly Property DefaultMapName As String
[C#]
public string DefaultMapName {get;}
[Java]
public String getDefaultMapName()
throws
    IOException,
    AutomationException
[C++]
HRESULT get_DefaultMapName(
  BSTR* MapName
);
[C++]

Parameters

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, Map Server adds a distinctive number at the end of the second name. E.g. Layers and Layers2.

See Also

IMapServer2 Interface