ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / Name Property
Example

In This Topic
    Name Property (Map)
    In This Topic
    Gets the name of the map.
    Syntax
    public string Name {get;}
    Public ReadOnly Property Name As String
    Example
    Get the active map's name
    public string GetActiveMapName()
    {
      //Get the active map view.
      var mapView = MapView.Active;
      if (mapView == null)
        return null;
    
      //Return the name of the map currently displayed in the active map view.
      return mapView.Map.Name;
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also