laptop and a wrench

Bug

Specifying the maxRecords argument of LocalMapService.GetServiceAsync() is ignored.

Last Published: August 25, 2014 ArcGIS Runtime SDK
Bug ID Number NIM077607
SubmittedJanuary 27, 2012
Last ModifiedJune 5, 2024
Applies toArcGIS Runtime SDK
Version found10.1 Beta 1
Program languageC#
Operating SystemWindows OS
Operating System Version7 64 Bit
Version Fixed10.1
StatusFixed

Workaround

//********************* Try below code instead ************************* //********************************************************************** LocalMapService localMapService = new LocalMapService() { Path = @"...\Debug\DE_PLZ_5.mpk", MaxRecords = 9000, EnableDynamicLayers = true }; localMapService.StartAsync(delegateLocalService => { Query query = new Query(); query.Where = "1=1"; QueryTask queryTask = new QueryTask(localMapService.UrlMapService + "/0"); FeatureSet test = queryTask.Execute(query); MessageBox.Show("Test 1: " + test.Features.Count.ToString()); MessageBox.Show("Test 2: " + localMapService.MaxRecords.ToString()); }); //********************************************************************** //**********************************************************************

Steps to Reproduce

Bug ID: NIM077607

Software:

  • ArcGIS Runtime SDK

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options