ESRI.ArcGIS.ADF.IMS
FeatureLimit Property
See Also 
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > QueryParameters Class : FeatureLimit Property




Gets or sets the maximum number of features to be returned.

Syntax

Visual Basic (Declaration) 
Public Property FeatureLimit As Integer
Visual Basic (Usage)Copy Code
Dim instance As QueryParameters
Dim value As Integer
 
instance.FeatureLimit = value
 
value = instance.FeatureLimit
C# 
public int FeatureLimit {get; set;}

Example

See the QueryParameters overview for an example of setting this property.

Remarks

Use this value to limit the number of features returned in a single query. The default is 50 feature records.

In general it is recommended, for performance and server load reasons, to request relatively small numbers of features in single queries, and then to use FeatureLayer.Query(QueryParameters, int) to request additional feature records. The FeatureTable returned from the query can be checked for whether there are more records to retrieve with the HasMore property.

The ArcIMS server limits the number of features that may be retrieved in a single query. By default this number is 2000. Setting FeatureLimit higher than this value will throw an error. See the ArcIMS Help topic "Strategies for using feature limits" for details.

See Also

© 2010 All Rights Reserved.