MapControl.TrySetSceneAsync Method

Definition

Overloads

TrySetSceneAsync(MapScene)

Sets the scene of the map displayed in the MapControl using the specified scene.

TrySetSceneAsync(MapScene, MapAnimationKind)

Sets the scene of the map displayed in the MapControl using the specified scene and animation.

TrySetSceneAsync(MapScene)

Sets the scene of the map displayed in the MapControl using the specified scene.

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)

Parameters

scene
MapScene

Defines the item or area to appear in the map.

Returns

true if the asynchronous operation succeeded; otherwise, false.

Attributes

See also

Applies to

TrySetSceneAsync(MapScene, MapAnimationKind)

Sets the scene of the map displayed in the MapControl using the specified scene and animation.

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)

Parameters

scene
MapScene

Defines the item or area to appear in the map.

animationKind
MapAnimationKind

Specifies the animation to use when you change the scene of the map.

Returns

true if the asynchronous operation succeeded; otherwise, false.

Attributes

See also

Applies to