ArcGIS Pro 2.6 API Reference Guide
GeocodeAsync Method

ArcGIS.Desktop.Mapping.Geocoding Namespace > LocatorManager Class : GeocodeAsync Method
The address/location to geocode.
Should the candidate results be displayed on the active map?
Should the map zoom to the first candidate result?
Perform a geocode operation. Geocode results are returned according to the active locator providers.
Syntax

Parameters

location
The address/location to geocode.
showResultsOnMap
Should the candidate results be displayed on the active map?
zoomToFirstResult
Should the map zoom to the first candidate result?

Return Value

Task of enumeration of GeocodeResult objects. If no locators can be found then null is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

LocatorManager Class
LocatorManager Members