Visual Basic (Declaration) | |
---|---|
Public Shared Function InitializeWithLocalService( _ ByVal geoprocessor As Geoprocessor, _ ByVal path As String, _ ByVal toolname As String, _ ByVal gpServiceType As GPServiceType _ ) As LocalGeoprocessingService |
C# | |
---|---|
public static LocalGeoprocessingService InitializeWithLocalService( Geoprocessor geoprocessor, string path, string toolname, GPServiceType gpServiceType ) |
This method will reuse an existing local geoprocessing service if one exists with the same properties or start a new one if none are found on the runtime local server.
Parameters
- geoprocessor
- The Geoprocessor task to initialize.
- path
- A System.String representing the path to a geoprocessing package (.gpk).
- toolname
- A System.String representing the name of the tool within the package.
- gpServiceType
- A ESRI.ArcGIS.Client.Local.GPServiceType representing the required type of the local geoprocessing service: synchronous, asynchronous or asynchronous with map server result.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8