ArcGIS Pro 2.6 API Reference Guide
Activate Method (LocatorProvider)

ArcGIS.Desktop.Mapping.Geocoding Namespace > LocatorProvider Class : Activate Method
Activates the locator provider; that is ensures that UseProvider is true if the locator is valid.
Syntax
public Task Activate()
Public Function Activate() As Task
Exceptions
ExceptionDescription
There is no active map view.
The locator cannot be activated.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

LocatorProvider Class
LocatorProvider Members