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

IInitGeocodeServer.AttachToLocator Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Location > ESRI.ArcGIS.Location > Interfaces > II > IInitGeocodeServer Interface > IInitGeocodeServer.AttachToLocator Method
ArcGIS Developer Help

IInitGeocodeServer.AttachToLocator Method

Attach this service to the locator specified by the locator name. This is the locator that the service will use internally.

[Visual Basic .NET]
Public Sub AttachToLocator ( _
    ByVal locName As ILocatorName _
public void AttachToLocator (
    ILocatorName locName
HRESULT AttachToLocator(
  ILocatorName* locName
locName [in]

locName is a parameter of type ILocatorName*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


To create a new GeocodeServer in a Desktop or Engine environment, simply create a new GeocodeServer object and attach the address locator on which you want to base the GeocodeServer using the AttachToLocator method.

See Also

IInitGeocodeServer Interface