This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Location > ESRI.ArcGIS.Location > Interfaces > II > IInitGeocodeServer Interface > IInitGeocodeServer.AttachToLocator Method (ArcObjects .NET 10.4 SDK) |
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
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.