ArcGIS Runtime SDK for WPF - Library Reference
InitializeWithLocalService(Locator,String) Method
See Also 
ESRI.ArcGIS.Client.Tasks Namespace > LocatorLocalExtensions Class > InitializeWithLocalService Method : InitializeWithLocalService(Locator,String) Method

locator
A Locator to initialize.
path
A System.String representing the path to a Locator Package, folder or Geodatabase.
Synchronously initializes a Locator task instance with a ESRI.ArcGIS.Client.Local.LocalGeocodeService.UrlGeocodeService based on the provided path to a Geocode Package (.gcpk) or alternatively a folder or Geodatabase containing a locator.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function InitializeWithLocalService( _
   ByVal locator As Locator, _
   ByVal path As String _
) As LocalGeocodeService
C# 
public static LocalGeocodeService InitializeWithLocalService( 
   Locator locator,
   string path
)

Remarks

This method accepts only a Locator task and the path to a package or workspace. If the package or workspace contains more than one locator the API will automatically use the first locator found.

This method will reuse an existing local geocode service if one exists with the same properties or start a new one if none are found on the runtime local server.

Parameters

locator
A Locator to initialize.
path
A System.String representing the path to a Locator Package, folder or Geodatabase.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.