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如果未找到任何位置,则为 。

适用于