다음을 통해 공유


MapExtensions.TryOpenAsync 메서드

정의

오버로드

TryOpenAsync(IMap, Location)

먼저 설치된 맵 애플리케이션을 열 수 있는지 확인한 다음, 시작 옵션을 사용하여 설치된 애플리케이션을 특정 위치로 엽니다.

TryOpenAsync(IMap, Placemark)

먼저 설치된 맵 애플리케이션을 열 수 있는지 확인한 다음, 설치된 애플리케이션을 시작 옵션이 있는 특정 자리 표시로 엽니다.

TryOpenAsync(IMap, Location, MapLaunchOptions)

먼저 설치된 맵 애플리케이션을 열 수 있는지 확인한 다음, 시작 옵션을 사용하여 설치된 애플리케이션을 특정 위치로 엽니다.

TryOpenAsync(IMap, Double, Double)

먼저 설치된 맵 애플리케이션을 열 수 있는지 확인한 다음, 시작 옵션을 사용하여 설치된 애플리케이션을 특정 위치로 엽니다.

TryOpenAsync(IMap, Location)

Source:
Map.shared.cs
Source:
Map.shared.cs

먼저 설치된 맵 애플리케이션을 열 수 있는지 확인한 다음, 시작 옵션을 사용하여 설치된 애플리케이션을 특정 위치로 엽니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ TryOpenAsync(Microsoft::Maui::ApplicationModel::IMap ^ map, Microsoft::Maui::Devices::Sensors::Location ^ location);
public static System.Threading.Tasks.Task<bool> TryOpenAsync (this Microsoft.Maui.ApplicationModel.IMap map, Microsoft.Maui.Devices.Sensors.Location location);
static member TryOpenAsync : Microsoft.Maui.ApplicationModel.IMap * Microsoft.Maui.Devices.Sensors.Location -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function TryOpenAsync (map As IMap, location As Location) As Task(Of Boolean)

매개 변수

map
IMap

이 메서드가 호출되는 개체입니다.

location
Location

지도 애플리케이션에서 열 위치입니다.

반환

true 맵 애플리케이션이 열리면 이고, 그렇지 않으면 false입니다.

예외

locationnull인 경우

적용 대상

TryOpenAsync(IMap, Placemark)

Source:
Map.shared.cs
Source:
Map.shared.cs

먼저 설치된 맵 애플리케이션을 열 수 있는지 확인한 다음, 설치된 애플리케이션을 시작 옵션이 있는 특정 자리 표시로 엽니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ TryOpenAsync(Microsoft::Maui::ApplicationModel::IMap ^ map, Microsoft::Maui::Devices::Sensors::Placemark ^ placemark);
public static System.Threading.Tasks.Task<bool> TryOpenAsync (this Microsoft.Maui.ApplicationModel.IMap map, Microsoft.Maui.Devices.Sensors.Placemark placemark);
static member TryOpenAsync : Microsoft.Maui.ApplicationModel.IMap * Microsoft.Maui.Devices.Sensors.Placemark -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function TryOpenAsync (map As IMap, placemark As Placemark) As Task(Of Boolean)

매개 변수

map
IMap

이 메서드가 호출되는 개체입니다.

placemark
Placemark

지도 애플리케이션에서 열 자리 표시입니다.

반환

true 맵 애플리케이션이 열리면 이고, 그렇지 않으면 false입니다.

적용 대상

TryOpenAsync(IMap, Location, MapLaunchOptions)

Source:
Map.shared.cs
Source:
Map.shared.cs

먼저 설치된 맵 애플리케이션을 열 수 있는지 확인한 다음, 시작 옵션을 사용하여 설치된 애플리케이션을 특정 위치로 엽니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ TryOpenAsync(Microsoft::Maui::ApplicationModel::IMap ^ map, Microsoft::Maui::Devices::Sensors::Location ^ location, Microsoft::Maui::ApplicationModel::MapLaunchOptions ^ options);
public static System.Threading.Tasks.Task<bool> TryOpenAsync (this Microsoft.Maui.ApplicationModel.IMap map, Microsoft.Maui.Devices.Sensors.Location location, Microsoft.Maui.ApplicationModel.MapLaunchOptions options);
static member TryOpenAsync : Microsoft.Maui.ApplicationModel.IMap * Microsoft.Maui.Devices.Sensors.Location * Microsoft.Maui.ApplicationModel.MapLaunchOptions -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function TryOpenAsync (map As IMap, location As Location, options As MapLaunchOptions) As Task(Of Boolean)

매개 변수

map
IMap

이 메서드가 호출되는 개체입니다.

location
Location

지도 애플리케이션에서 열 위치입니다.

options
MapLaunchOptions

사용할 시작 옵션입니다.

반환

true 맵 애플리케이션이 열리면 이고, 그렇지 않으면 false입니다.

예외

또는 optionslocation 인 경우 throw됩니다null.

적용 대상

TryOpenAsync(IMap, Double, Double)

Source:
Map.shared.cs
Source:
Map.shared.cs

먼저 설치된 맵 애플리케이션을 열 수 있는지 확인한 다음, 시작 옵션을 사용하여 설치된 애플리케이션을 특정 위치로 엽니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ TryOpenAsync(Microsoft::Maui::ApplicationModel::IMap ^ map, double latitude, double longitude);
public static System.Threading.Tasks.Task<bool> TryOpenAsync (this Microsoft.Maui.ApplicationModel.IMap map, double latitude, double longitude);
static member TryOpenAsync : Microsoft.Maui.ApplicationModel.IMap * double * double -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function TryOpenAsync (map As IMap, latitude As Double, longitude As Double) As Task(Of Boolean)

매개 변수

map
IMap

이 메서드가 호출되는 개체입니다.

latitude
Double

대상 위도입니다.

longitude
Double

대상 경도입니다.

반환

true 맵 애플리케이션이 열리면 이고, 그렇지 않으면 false입니다.

적용 대상