IMap.OpenAsync 方法

定義

多載

OpenAsync(Placemark, MapLaunchOptions)

使用啟動選項,將已安裝的應用程式開啟至特定位置。

OpenAsync(Double, Double, MapLaunchOptions)

使用啟動選項,將已安裝的應用程式開啟至特定位置。

OpenAsync(Placemark, MapLaunchOptions)

使用啟動選項,將已安裝的應用程式開啟至特定位置。

public:
 System::Threading::Tasks::Task ^ OpenAsync(Microsoft::Maui::Devices::Sensors::Placemark ^ placemark, Microsoft::Maui::ApplicationModel::MapLaunchOptions ^ options);
public System.Threading.Tasks.Task OpenAsync (Microsoft.Maui.Devices.Sensors.Placemark placemark, Microsoft.Maui.ApplicationModel.MapLaunchOptions options);
abstract member OpenAsync : Microsoft.Maui.Devices.Sensors.Placemark * Microsoft.Maui.ApplicationModel.MapLaunchOptions -> System.Threading.Tasks.Task
Public Function OpenAsync (placemark As Placemark, options As MapLaunchOptions) As Task

參數

placemark
Placemark

在地圖應用程式中開啟的加註標記。

options
MapLaunchOptions

啟動要使用的選項。

傳回

物件 Task ,具有異步操作的目前狀態。

適用於

OpenAsync(Double, Double, MapLaunchOptions)

使用啟動選項,將已安裝的應用程式開啟至特定位置。

public:
 System::Threading::Tasks::Task ^ OpenAsync(double latitude, double longitude, Microsoft::Maui::ApplicationModel::MapLaunchOptions ^ options);
public System.Threading.Tasks.Task OpenAsync (double latitude, double longitude, Microsoft.Maui.ApplicationModel.MapLaunchOptions options);
abstract member OpenAsync : double * double * Microsoft.Maui.ApplicationModel.MapLaunchOptions -> System.Threading.Tasks.Task
Public Function OpenAsync (latitude As Double, longitude As Double, options As MapLaunchOptions) As Task

參數

latitude
Double

目標緯度。

longitude
Double

目標經度。

options
MapLaunchOptions

啟動要使用的選項。

傳回

物件 Task ,具有異步操作的目前狀態。

適用於