ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / Map Property
Example

In This Topic
    Map Property (MapView)
    In This Topic
    Gets the map or scene associated with the view.
    Syntax
    Public ReadOnly Property Map As Map
    public Map Map {get;}
    Example
    Get the active map
    {
        //This is how you get the active map
        var mapToGet = MapView.Active?.Map;
    }
    Get the active map's name
    {
      //Return the name of the map currently displayed in the active map view.
      var result = mapView.Map.Name;
      // Use the result variable as needed
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also