Share via


GeotagHelper.SetGeotagFromGeolocatorAsync(IStorageFile, Geolocator) Method

Definition

Asynchronously sets the geographic metadata of a file to the device's current location using the provided Geolocator object.

public:
 static IAsyncAction ^ SetGeotagFromGeolocatorAsync(IStorageFile ^ file, Geolocator ^ geolocator);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction SetGeotagFromGeolocatorAsync(IStorageFile const& file, Geolocator const& geolocator);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction SetGeotagFromGeolocatorAsync(IStorageFile file, Geolocator geolocator);
function setGeotagFromGeolocatorAsync(file, geolocator)
Public Shared Function SetGeotagFromGeolocatorAsync (file As IStorageFile, geolocator As Geolocator) As IAsyncAction

Parameters

file
IStorageFile

The file into which the geographic metadata is set.

geolocator
Geolocator

The Geolocator object that will be used to determine the device's current location.

Returns

An asynchronous action.

Attributes

Applies to