string url = "http://localhost:6080/arcgis/rest/services/CalculateSynchNoOut/GPServer/CalculateSynchNoOut"; Geoprocessor geoprocessorTask = new Geoprocessor(url); geoprocessorTask.ExecuteCompleted += new EventHandler<GPExecuteCompleteEventArgs>(geoprocessorTask_ExecuteCompleted); geoprocessorTask.Failed += new EventHandler<TaskFailedEventArgs>(geoprocessorTask_Failed); geoprocessorTask.OutputSpatialReference = Map.SpatialReference; List<GPParameter> parameters = new List<GPParameter>(); parameters.Add(new GPString("Expression", "OBJECTID=19974")); geoprocessorTask.ExecuteAsync(parameters);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.