ArcGIS Pro 2.7 API Reference Guide
Deactivate Method (LocatorProvider)

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

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

LocatorProvider Class
LocatorProvider Members