共用方式為


GeocodingExtensions.GetPlacemarksAsync(IGeocoding, Location) 方法

定義

擷取所指定 Location位置的潛在標記。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::Maui::Devices::Sensors::Placemark ^> ^> ^ GetPlacemarksAsync(Microsoft::Maui::Devices::Sensors::IGeocoding ^ geocoding, Microsoft::Maui::Devices::Sensors::Location ^ location);
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Maui.Devices.Sensors.Placemark>> GetPlacemarksAsync (this Microsoft.Maui.Devices.Sensors.IGeocoding geocoding, Microsoft.Maui.Devices.Sensors.Location location);
static member GetPlacemarksAsync : Microsoft.Maui.Devices.Sensors.IGeocoding * Microsoft.Maui.Devices.Sensors.Location -> System.Threading.Tasks.Task<seq<Microsoft.Maui.Devices.Sensors.Placemark>>
<Extension()>
Public Function GetPlacemarksAsync (geocoding As IGeocoding, location As Location) As Task(Of IEnumerable(Of Placemark))

參數

geocoding
IGeocoding

叫用這個方法的物件。

location
Location

Location 尋找附近標記的實例。

傳回

Placemark最符合座標的清單,如果null找不到任何尺規,則為 。

例外狀況

locationnull 時擲回。

適用於