|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INALocator Interface > INALocator.AddLocatorAgent Method (ArcObjects .NET 10.4 SDK) | 
Add a locator agent.
[Visual Basic .NET] Public Sub AddLocatorAgent ( _ ByVal LocatorAgent As INALocatorAgent _ )
[C#] public void AddLocatorAgent ( INALocatorAgent LocatorAgent );
[C++]
HRESULT AddLocatorAgent(
  INALocatorAgent* LocatorAgent
);
[C++]
Parameters LocatorAgent [in]
LocatorAgent is a parameter of type INALocatorAgent
AddLocatorAgent adds a locator agent to the NALocator's collection.