Visual Basic (Declaration) | |
---|---|
Public Shared Sub InitializeWithLocalServiceAsync( _ ByVal geoprocessor As Geoprocessor, _ ByVal path As String, _ ByVal toolname As String, _ ByVal gpServiceType As GPServiceType, _ ByVal callback As Action(Of LocalGeoprocessingService) _ ) |
C# | |
---|---|
public static void InitializeWithLocalServiceAsync( Geoprocessor geoprocessor, string path, string toolname, GPServiceType gpServiceType, Action<LocalGeoprocessingService> callback ) |
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.
- callback
- An Action delegate to support inline event handling.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8