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

IMapServerInit.MaxRecordCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerInit Interface > IMapServerInit.MaxRecordCount Property
ArcGIS Developer Help

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
public int MaxRecordCount {get; set;}
HRESULT get_MaxRecordCount(
  System.Int32* Count
HRESULT put_MaxRecordCount(
  long Count
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.


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