Sdílet prostřednictvím


Geocoding.GetLocationsAsync(String) Metoda

Definice

Načte potenciální umístění pro danou adresu.

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

Parametry

address
String

Adresa, pro kterou se má načíst umístění.

Návraty

Location Seznam, který nejlépe odpovídá adrese, nebo null pokud nejsou nalezena žádná umístění.

Platí pro