ArcGIS Pro 2.6 API Reference Guide
ZoomToAsync(Camera,Nullable<TimeSpan>) Method
Example 

ArcGIS.Desktop.Mapping Namespace > MapView Class > ZoomToAsync Method : ZoomToAsync(Camera,Nullable<TimeSpan>) Method
The new camera to use for the view.
The amount of time to navigate the view to the new camera position. If null it uses the default navigation duration.
Zoom the view to a camera position.
Syntax
Public Overloads Function ZoomToAsync( _
   ByVal camera As Camera, _
   Optional ByVal duration As Nullable(Of TimeSpan) _
) As Task(Of Boolean)

Parameters

camera
The new camera to use for the view.
duration
The amount of time to navigate the view to the new camera position. If null it uses the default navigation duration.

Return Value

True if the navigation is completed, false if it was interrupted by another view navigation.
Remarks
This is equivalent to setting the camera position for the view. Use this method in combination with Camera to get and then modify the position of the view's camera. If the camera's spatial reference is in a different spatial reference than the map this method projects the camera into the spatial reference of the map.
Example
Rotate the active map view.
public void RotateView(double heading)
{
  //Get the active map view.
  var mapView = MapView.Active;
  if (mapView == null)
    return;

  //Get the camera for the view, adjust the heading and zoom to the new camera position.
  var camera = mapView.Camera;
  camera.Heading = heading;
  mapView.ZoomToAsync(camera, TimeSpan.Zero);
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

MapView Class
MapView Members
Overload List