This document is archived and information here might be outdated.  Recommended version.


ILocatorExtension.AddLocator Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > LocationUI > ESRI.ArcGIS.LocationUI > Interfaces > IL > ILocatorExtension Interface > ILocatorExtension.AddLocator Method
ArcGIS Developer Help

ILocatorExtension.AddLocator Method

Adds a locator to the ArcMap document.

[Visual Basic .NET]
Public Function AddLocator ( _
    ByVal Locator As ILocator _
) As Integer
[C#]
public int AddLocator (
    ILocator Locator
);

Product Availability

Available with ArcGIS Desktop.

Remarks

This method returns a long integer indicating the index of the locator that you added to the ArcMap document.

See Also

ILocatorExtension Interface | ILocatorWorkspace.GetLocator Method | ILocator Interface | ILocatorWorkspace.UpdateLocator Method | StreetMapAddressLocator Class | ESRIFDOAddressLocatorStyle Class | ESRIFDOAddressLocator Class | StreetMapAddressLocatorStyle Class | LocatorExtension Class | GxLocator Class