PlacemarkExtensions.OpenMapsAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
OpenMapsAsync(Placemark) |
將地圖開啟至標處。 |
OpenMapsAsync(Placemark, MapLaunchOptions) |
使用選項開啟地圖至地標記。 |
OpenMapsAsync(Placemark)
將地圖開啟至標處。
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task ^ OpenMapsAsync(Microsoft::Maui::Devices::Sensors::Placemark ^ placemark);
public static System.Threading.Tasks.Task OpenMapsAsync (this Microsoft.Maui.Devices.Sensors.Placemark placemark);
static member OpenMapsAsync : Microsoft.Maui.Devices.Sensors.Placemark -> System.Threading.Tasks.Task
<Extension()>
Public Function OpenMapsAsync (placemark As Placemark) As Task
參數
- placemark
- Placemark
要開啟地圖的標號。
傳回
Task具有異步操作目前狀態的物件。
適用於
OpenMapsAsync(Placemark, MapLaunchOptions)
使用選項開啟地圖至地標記。
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task ^ OpenMapsAsync(Microsoft::Maui::Devices::Sensors::Placemark ^ placemark, Microsoft::Maui::ApplicationModel::MapLaunchOptions ^ options);
public static System.Threading.Tasks.Task OpenMapsAsync (this Microsoft.Maui.Devices.Sensors.Placemark placemark, Microsoft.Maui.ApplicationModel.MapLaunchOptions options);
static member OpenMapsAsync : Microsoft.Maui.Devices.Sensors.Placemark * Microsoft.Maui.ApplicationModel.MapLaunchOptions -> System.Threading.Tasks.Task
<Extension()>
Public Function OpenMapsAsync (placemark As Placemark, options As MapLaunchOptions) As Task
參數
- placemark
- Placemark
要開啟地圖的標號。
- options
- MapLaunchOptions
開啟地圖的選項。
傳回
Task具有異步操作目前狀態的物件。