Partage via


LocalLocationFinder.FindLocalLocationsAsync Méthode

Définition

Obtient des informations sur les entreprises et les lieux qui répondent aux critères de recherche spécifiés.

Notes

Cette API n’est pas disponible pour toutes les applications Windows. Sauf si votre compte de développeur est spécialement approvisionné par Microsoft, les appels à cette API échouent au moment de l’exécution. Pour plus d’informations sur l’espace de noms Windows.Services.Maps.LocalSearch , contactez votre représentant de l’équipe de compte Microsoft.

public:
 static IAsyncOperation<LocalLocationFinderResult ^> ^ FindLocalLocationsAsync(Platform::String ^ searchTerm, Geocircle ^ searchArea, Platform::String ^ localCategory, unsigned int maxResults);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<LocalLocationFinderResult> FindLocalLocationsAsync(winrt::hstring const& searchTerm, Geocircle const& searchArea, winrt::hstring const& localCategory, uint32_t const& maxResults);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LocalLocationFinderResult> FindLocalLocationsAsync(string searchTerm, Geocircle searchArea, string localCategory, uint maxResults);
function findLocalLocationsAsync(searchTerm, searchArea, localCategory, maxResults)
Public Shared Function FindLocalLocationsAsync (searchTerm As String, searchArea As Geocircle, localCategory As String, maxResults As UInteger) As IAsyncOperation(Of LocalLocationFinderResult)

Paramètres

searchTerm
String

Platform::String

winrt::hstring

Texte de la requête de la recherche ; ce que vous recherchez.

searchArea
Geocircle

Zone géographique à inclure dans la recherche.

localCategory
String

Platform::String

winrt::hstring

Catégories de recherche utilisées pour limiter les résultats de recherche. Nous vous recommandons d’utiliser une ou plusieurs propriétés LocalCategories pour spécifier localCategory. Utilisez un point-virgule " ; " pour spécifier plusieurs catégories.

maxResults
UInt32

unsigned int

uint32_t

Nombre maximal de résultats à retourner à partir de la recherche.

Retours

Les entreprises ou les lieux pertinents qui répondent aux critères de recherche spécifiés, de type LocalLocationFinderResult.

Attributs

S’applique à