MapControl.TrySetSceneAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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。
- 属性