Map.OpenAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OpenAsync(Location) |
Open the installed application to a specific location. |
OpenAsync(Placemark) |
Open the installed application to a specific location. |
OpenAsync(Location, MapLaunchOptions) |
Open the installed application to a specific location with launch options. |
OpenAsync(Placemark, MapLaunchOptions) |
Open the installed application to a specific location with launch options. |
OpenAsync(Double, Double) |
Open the installed application to a specific location. |
OpenAsync(Double, Double, MapLaunchOptions) |
Open the installed application to a specific location with launch options. |
OpenAsync(Location)
- Source:
- Map.shared.cs
- Source:
- Map.shared.cs
Open the installed application to a specific 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
Parameters
- location
- Location
Location to open in the map application.
Returns
A Task object with the current status of the asynchronous operation.
Applies to
OpenAsync(Placemark)
- Source:
- Map.shared.cs
- Source:
- Map.shared.cs
Open the installed application to a specific location.
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
Parameters
- placemark
- Placemark
Placemark to open in the map application.
Returns
A Task object with the current status of the asynchronous operation.
Applies to
OpenAsync(Location, MapLaunchOptions)
- Source:
- Map.shared.cs
- Source:
- Map.shared.cs
Open the installed application to a specific location with launch options.
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
Parameters
- location
- Location
Location to open in the map application.
- options
- MapLaunchOptions
Launch options to use.
Returns
A Task object with the current status of the asynchronous operation.
Applies to
OpenAsync(Placemark, MapLaunchOptions)
- Source:
- Map.shared.cs
- Source:
- Map.shared.cs
Open the installed application to a specific location with launch options.
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
Parameters
- placemark
- Placemark
Placemark to open in the map application.
- options
- MapLaunchOptions
Launch options to use.
Returns
A Task object with the current status of the asynchronous operation.
Applies to
OpenAsync(Double, Double)
- Source:
- Map.shared.cs
- Source:
- Map.shared.cs
Open the installed application to a specific location.
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
Parameters
- latitude
- Double
Target latitude.
- longitude
- Double
Target longitude.
Returns
A Task object with the current status of the asynchronous operation.
Applies to
OpenAsync(Double, Double, MapLaunchOptions)
- Source:
- Map.shared.cs
- Source:
- Map.shared.cs
Open the installed application to a specific location with launch options.
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
Parameters
- latitude
- Double
Target latitude.
- longitude
- Double
Target longitude.
- options
- MapLaunchOptions
Launch options to use.
Returns
A Task object with the current status of the asynchronous operation.