{
//This is how you get the active map
var mapToGet = MapView.Active?.Map;
}
{
//Return the name of the map currently displayed in the active map view.
var result = mapView.Map.Name;
// Use the result variable as needed
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)