共用方式為


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 物件。

傳回

非同步動作。

屬性

適用於