共用方式為


MapControl.TrySetSceneAsync 方法

定義

多載

TrySetSceneAsync(MapScene)

使用指定的場景,設定 MapControl 中顯示的地圖場景。

TrySetSceneAsync(MapScene, MapAnimationKind)

使用指定的場景和動畫,設定 MapControl 中顯示的地圖場景。

TrySetSceneAsync(MapScene)

使用指定的場景,設定 MapControl 中顯示的地圖場景。

public:
 virtual IAsyncOperation<bool> ^ TrySetSceneAsync(MapScene ^ scene) = TrySetSceneAsync;
/// [Windows.Foundation.Metadata.Overload("TrySetSceneAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TrySetSceneAsync(MapScene const& scene);
[Windows.Foundation.Metadata.Overload("TrySetSceneAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TrySetSceneAsync(MapScene scene);
function trySetSceneAsync(scene)
Public Function TrySetSceneAsync (scene As MapScene) As IAsyncOperation(Of Boolean)

參數

scene
MapScene

定義要出現在地圖中的專案或區域。

傳回

如果非同步作業成功,則為true;否則為false

屬性

另請參閱

適用於

TrySetSceneAsync(MapScene, MapAnimationKind)

使用指定的場景和動畫,設定 MapControl 中顯示的地圖場景。

public:
 virtual IAsyncOperation<bool> ^ TrySetSceneAsync(MapScene ^ scene, MapAnimationKind animationKind) = TrySetSceneAsync;
/// [Windows.Foundation.Metadata.Overload("TrySetSceneWithAnimationAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TrySetSceneAsync(MapScene const& scene, MapAnimationKind const& animationKind);
[Windows.Foundation.Metadata.Overload("TrySetSceneWithAnimationAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TrySetSceneAsync(MapScene scene, MapAnimationKind animationKind);
function trySetSceneAsync(scene, animationKind)
Public Function TrySetSceneAsync (scene As MapScene, animationKind As MapAnimationKind) As IAsyncOperation(Of Boolean)

參數

scene
MapScene

定義要出現在地圖中的專案或區域。

animationKind
MapAnimationKind

指定要在變更地圖場景時使用的動畫。

傳回

如果非同步作業成功,則為true;否則為false

屬性

另請參閱

適用於