ArcGIS Runtime SDK for WPF - Library Reference
GetService(String,String) Method
See Also 
ESRI.ArcGIS.Client.Local Namespace > LocalGeocodeService Class > GetService Method : GetService(String,String) Method

path
A System.String representing the path or Url to the locator package.
locator
A System.String representing the name of the locator.
This method will either reuse an existing service for the supplied path or create a new service if one is not already running.

Syntax

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

Parameters

path
A System.String representing the path or Url to the locator package.
locator
A System.String representing the name of the locator.

Return Value

An existing LocalGeocodeService instance if one exists with the same properties in the LocalServer Services collection, otherwise a new LocalGeocodeService instance.

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.