ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping.Geocoding Namespace / LocatorProvider Class / DeactivateAsync Method

In This Topic
    DeactivateAsync Method
    In This Topic
    Deactivates the locator provider; that is ensures that UseProvider is false if the locator is valid.
    Syntax
    public Task DeactivateAsync()
    Public Function DeactivateAsync() As Task
    Exceptions
    ExceptionDescription
    There is no active map view.
    The locator cannot be deactivated.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also