Property MaxRecords
MaxRecords
Gets or sets the maximum number of records that can be returned by the Geoprocessing service.
Declaration
public int MaxRecords { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The maximum number of records that can be returned by the Geoprocessing service. |
Remarks
The MaxRecords property must be set before the Geoprocessing service has started. This property has a default value of 1000.
The maximum number of records property determines the number of output features or records returned by the service. If the number of output records or features created by a geoprocessing task exceeded the maximum number of records, the service will not return any features or records. The clients can identify such cases by examining the exceeded transfer limit property of the feature set or record set returned by the task. The exceeded transfer limit property will be set to true when the number of records and features of the output parameter exceed the maximum number of records specified by the service.
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.6 |
.NET Framework | 100.0 - 200.6 |