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


IInitGeocodeServer.AttachToLocator Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Location)  

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 _
)
[C#]
public void AttachToLocator (
    ILocatorName locName
);
[C++]
HRESULT AttachToLocator(
  ILocatorName* locName
);
[C++]

Parameters locName [in]
locName is a parameter of type ILocatorName

Product Availability

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

Remarks

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