共用方式為


PlacemarkExtensions.OpenMapsAsync 方法

定義

多載

OpenMapsAsync(Placemark)

將地圖開啟至標處。

OpenMapsAsync(Placemark, MapLaunchOptions)

使用選項開啟地圖至地標記。

OpenMapsAsync(Placemark)

來源:
PlacemarkExtensions.shared.cs
來源:
PlacemarkExtensions.shared.cs

將地圖開啟至標處。

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)

來源:
PlacemarkExtensions.shared.cs
來源:
PlacemarkExtensions.shared.cs

使用選項開啟地圖至地標記。

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具有異步操作目前狀態的物件。

適用於