Property MaxRecords
MaxRecords
Gets or sets the maximum number of records that can be returned by the LocalMapService in response to a query, find, or identify operation.
Declaration
public int MaxRecords { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | A System.Int32 representing the maximum number of records that can be returned by query, find, and identify operations on a local map service. |
Remarks
The MaxRecords property should be set before the LocalMapService has started. This property has a default value of 1000. If the property is not set explicitly the service will return the first 1000 records. The service can still exceed the MaxRecords property set. For both these scenarios more information can be found in the results of an operation to find out whether the service has exceeded the MaxRecords property set. To improve performance it is recommended that the MaxRecords property is set in order to limit an operation that may return a large number of results.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | MaxRecords cannot be set if the service is not in the stopped state. |
System.ArgumentException | Number cannot be zero or negative. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Windows | 100.13 - 200.5 |
.NET Framework | 100.0 - 200.5 |