Delen via


MapControl.TryZoomToAsync(Double) Method

Definition

Starts an asynchronous operation to zoom the map to a specific ZoomLevel.

public:
 virtual IAsyncOperation<bool> ^ TryZoomToAsync(double zoomLevel) = TryZoomToAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryZoomToAsync(double const& zoomLevel);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryZoomToAsync(double zoomLevel);
function tryZoomToAsync(zoomLevel)
Public Function TryZoomToAsync (zoomLevel As Double) As IAsyncOperation(Of Boolean)

Parameters

zoomLevel
Double

double

The final zoom level of the map, between 1 and 20.

Returns

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Attributes

Remarks

See the remarks section of the TryZoomInAsync method.

Applies to