ESRI.ArcGIS.ADF.Tasks
MaxRecords Property
See Also 
ESRI.ArcGIS.ADF.Tasks Namespace > QueryAttributesTask Class : MaxRecords Property




The maximum number of records (features) to retrieve when executing the task. Default is 50.

Syntax

Visual Basic (Declaration) 
<DefaultValueAttribute()>
<BrowsableAttribute(True)>
<ResDescriptionAttribute("An integer specifying the maximum number of records that the task will return.")>
<ResCategoryAttribute("QueryAttributesTask")>
Public Property MaxRecords As Integer
Visual Basic (Usage)Copy Code
Dim instance As QueryAttributesTask
Dim value As Integer
 
instance.MaxRecords = value
 
value = instance.MaxRecords
C# 
[DefaultValueAttribute()]
[BrowsableAttribute(true)]
[ResDescriptionAttribute("An integer specifying the maximum number of records that the task will return.")]
[ResCategoryAttribute("QueryAttributesTask")]
public int MaxRecords {get; set;}

Remarks

It is important to note that this value may be limited by the service underlying the map resource on which the query executes. For example, by default ArcGIS Server map services are limited to returning 500 features at a time. To change this value, modify the MaxRecordCount property in the service configuration file (.cfg). For more information, see the discussion topic on Service configuration files.

See Also

© 2010 All Rights Reserved.