This document is archived and information here might be outdated.  Recommended version.


IMapServerInit.MaxRecordCount Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapServerInit.MaxRecordCount Property

The maximum number of records returned for query results (Identify, Find, QueryFeatureData, and QueryHyperlinks).

[Visual Basic .NET]
Public Property MaxRecordCount As Integer
[C#]
public int MaxRecordCount {get; set;}
[C++]
HRESULT get_MaxRecordCount(
  long* Count
);
[C++]
HRESULT put_MaxRecordCount(
  long Count
);
[C++]

Parameters Count [out, retval] Count is a parameter of type long Count [in] Count is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

In order to control the amount of information MapServer needs to process for a query, a maximum number of records can be set. This value is contained in the MaxRecordCount property. The default value for this property is 500. If 600 features match a given query only the first 500 results will be returned. You will be unable to access the remaining 100 records. To be able to access these records the MaxRecordCount would need to be increased to 600. MaxRecordCount affects the following IMapServer methods: Find, Identify, QueryFeatureData, QueryFeatureData2, QueryHyperlinks, and QueryHyperlinks2. It does not affect QueryFeatureCount, QueryFeatureIDs or the number of Rows of a MapServerRelationship. The MaxRecordCount can also be changed by modifying the MaxRecordCount XML tag in the MapServer's configuration file.

See Also

IMapServerInit Interface