Map.OpenAsync 方法

定義

多載

OpenAsync(Location)

將已安裝的應用程式開啟至特定位置。

OpenAsync(Placemark)

將已安裝的應用程式開啟至特定位置。

OpenAsync(Location, MapLaunchOptions)

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

OpenAsync(Placemark, MapLaunchOptions)

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

OpenAsync(Double, Double)

將已安裝的應用程式開啟至特定位置。

OpenAsync(Double, Double, MapLaunchOptions)

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

OpenAsync(Location)

將已安裝的應用程式開啟至特定位置。

public:
 static System::Threading::Tasks::Task ^ OpenAsync(Microsoft::Maui::Devices::Sensors::Location ^ location);
public static System.Threading.Tasks.Task OpenAsync (Microsoft.Maui.Devices.Sensors.Location location);
static member OpenAsync : Microsoft.Maui.Devices.Sensors.Location -> System.Threading.Tasks.Task
Public Shared Function OpenAsync (location As Location) As Task

參數

location
Location

在地圖應用程式中開啟的位置。

傳回

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

適用於

OpenAsync(Placemark)

將已安裝的應用程式開啟至特定位置。

public:
 static System::Threading::Tasks::Task ^ OpenAsync(Microsoft::Maui::Devices::Sensors::Placemark ^ placemark);
public static System.Threading.Tasks.Task OpenAsync (Microsoft.Maui.Devices.Sensors.Placemark placemark);
static member OpenAsync : Microsoft.Maui.Devices.Sensors.Placemark -> System.Threading.Tasks.Task
Public Shared Function OpenAsync (placemark As Placemark) As Task

參數

placemark
Placemark

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

傳回

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

適用於

OpenAsync(Location, MapLaunchOptions)

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

public:
 static System::Threading::Tasks::Task ^ OpenAsync(Microsoft::Maui::Devices::Sensors::Location ^ location, Microsoft::Maui::ApplicationModel::MapLaunchOptions ^ options);
public static System.Threading.Tasks.Task OpenAsync (Microsoft.Maui.Devices.Sensors.Location location, Microsoft.Maui.ApplicationModel.MapLaunchOptions options);
static member OpenAsync : Microsoft.Maui.Devices.Sensors.Location * Microsoft.Maui.ApplicationModel.MapLaunchOptions -> System.Threading.Tasks.Task
Public Shared Function OpenAsync (location As Location, options As MapLaunchOptions) As Task

參數

location
Location

在地圖應用程式中開啟的位置。

options
MapLaunchOptions

啟動要使用的選項。

傳回

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

適用於

OpenAsync(Placemark, MapLaunchOptions)

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

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

參數

placemark
Placemark

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

options
MapLaunchOptions

啟動要使用的選項。

傳回

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

適用於

OpenAsync(Double, Double)

將已安裝的應用程式開啟至特定位置。

public:
 static System::Threading::Tasks::Task ^ OpenAsync(double latitude, double longitude);
public static System.Threading.Tasks.Task OpenAsync (double latitude, double longitude);
static member OpenAsync : double * double -> System.Threading.Tasks.Task
Public Shared Function OpenAsync (latitude As Double, longitude As Double) As Task

參數

latitude
Double

目標緯度。

longitude
Double

目標經度。

傳回

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

適用於

OpenAsync(Double, Double, MapLaunchOptions)

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

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

參數

latitude
Double

目標緯度。

longitude
Double

目標經度。

options
MapLaunchOptions

啟動要使用的選項。

傳回

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

適用於