共用方式為


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 方法的備註一節。

適用於