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

path
A System.String representing the path to the geoprocessing package.
serviceType
Type of the service.
This method will either reuse an existing service for the supplied path and execution type 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 serviceType As GPServiceType _
) As LocalGeoprocessingService
C# 
public static LocalGeoprocessingService GetService( 
   string path,
   GPServiceType serviceType
)

Parameters

path
A System.String representing the path to the geoprocessing package.
serviceType
Type of the service.

Return Value

An existing LocalGeoprocessingService instance if one exists with the same properties in the LocalServer Services collection, otherwise a new LocalGeoprocessingService 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.