MapControl.TryPanToAsync(Geopoint) Method

Definition

Starts an asynchronous operation to pan the map to a specific location.

public:
 virtual IAsyncOperation<bool> ^ TryPanToAsync(Geopoint ^ location) = TryPanToAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryPanToAsync(Geopoint const& location);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryPanToAsync(Geopoint location);
function tryPanToAsync(location)
Public Function TryPanToAsync (location As Geopoint) As IAsyncOperation(Of Boolean)

Parameters

location
Geopoint

The coordinates of a geographic location to which you want to pan the map.

Returns

IAsyncOperation<Boolean>

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to