ArcGIS Pro 2.9 API Reference Guide
LocatorsConnectionProjectItem Class
Members  Example 

ArcGIS.Desktop.Catalog Namespace : LocatorsConnectionProjectItem Class
Represents a locator connection project item.
Object Model
LocatorsConnectionProjectItem ClassTimeInstant Class
Syntax
public sealed class LocatorsConnectionProjectItem : ArcGIS.Desktop.Internal.Catalog.ProjectItemInfoCrawl, ArcGIS.Desktop.Core.IMetadata, ArcGIS.Desktop.Core.IProjectItem, System.ComponentModel.INotifyPropertyChanged  
Public NotInheritable Class LocatorsConnectionProjectItem 
   Inherits ArcGIS.Desktop.Internal.Catalog.ProjectItemInfoCrawl
   Implements ArcGIS.Desktop.Core.IMetadata, ArcGIS.Desktop.Core.IProjectItem, System.ComponentModel.INotifyPropertyChanged 
Remarks

A locator connection project item is a file-based locator or a geocoding service that has been added to the current project.

Example
/// Get all the locator connections in a project
IEnumerable<LocatorsConnectionProjectItem> projectLocators = Project.Current.GetItems<LocatorsConnectionProjectItem>();
Inheritance Hierarchy

System.Object
   ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase
      ArcGIS.Desktop.Core.Item
                  ArcGIS.Desktop.Catalog.LocatorsConnectionProjectItem

Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

LocatorsConnectionProjectItem Members
ArcGIS.Desktop.Catalog Namespace