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 物件。
傳回
非同步動作。
- 屬性