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

locator
A Locator to initialize.
path
A System.String representing the path to a Locator Package, folder or Geodatabase.
locatorName
a System.String representing the name of the specific locator within the package, geodatabase or folder.
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, _
   ByVal locatorName As String _
) As LocalGeocodeService
C# 
public static LocalGeocodeService InitializeWithLocalService( 
   Locator locator,
   string path,
   string locatorName
)

Parameters

locator
A Locator to initialize.
path
A System.String representing the path to a Locator Package, folder or Geodatabase.
locatorName
a System.String representing the name of the specific locator within the package, geodatabase or folder.

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.