GeotagHelper.SetGeotagFromGeolocatorAsync(IStorageFile, Geolocator) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用提供的 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 对象。
返回
异步操作。
- 属性