GeotagHelper.SetGeotagFromGeolocatorAsync(IStorageFile, Geolocator) 方法

定义

使用提供的 Geolocator 对象将文件的地理元数据异步设置为设备的当前位置。

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

参数

file
IStorageFile

在其中设置地理元数据的文件。

geolocator
Geolocator

将用于确定设备的当前位置的 Geolocator 对象。

返回

异步操作。

属性

适用于