Share via


IGeocoding.GetLocationsAsync(String) 方法

定義

擷取指定位址的潛在位置。

public:
 System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::Maui::Devices::Sensors::Location ^> ^> ^ GetLocationsAsync(System::String ^ address);
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Maui.Devices.Sensors.Location>> GetLocationsAsync (string address);
abstract member GetLocationsAsync : string -> System.Threading.Tasks.Task<seq<Microsoft.Maui.Devices.Sensors.Location>>
Public Function GetLocationsAsync (address As String) As Task(Of IEnumerable(Of Location))

參數

address
String

要擷取位置的位址。

傳回

Location最符合地址的清單,如果null找不到任何位置,則為 。

適用於