MapControl.TryZoomToAsync(Double) 方法

定义

启动异步操作以将地图缩放到特定的 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)

参数

zoomLevel
Double

double

地图的最终缩放级别,介于 1 和 20 之间。

返回

包含操作的结果:如果操作成功完成,则为 true ;否则为 false

属性

注解

请参阅 TryZoomInAsync 方法的备注部分。

适用于