This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerFindResult Interface (ArcObjects .NET 10.5 SDK) |
Provides access to the Map Server Find Result Interface.
Use IMapServerFindResult to access properties of map features returned as a result of using the IMapServer Find method.
Description | ||
---|---|---|
FeatureId | The ID of the found feature. | |
FeatureProperties | A set of name-value pairs for the found features's field names and values. | |
FeatureShape | The geometry of the found feature. | |
FieldName | The field name. | |
LayerID | The layer ID. | |
Value | The found value. |
CoClasses and Classes | Description |
---|---|
MapServerFindResult | The Map Server Find Result coclass provides information about a 'find result'. |
MapServerFindResult honors field visibility and field aliases set in the source map.
MapServerFindResult includes a number of properties. Value and FieldName return respectively the value and field�s name of the primary display field for the feature. FeatureProperties returns a set Field-value pairs. These are returned as strings. This also includes the Shape field. To get geometry do not use the Shape field contained within the FeatureProperties� field-value pairs, use the FeatureShape property instead. If you are interested in information about the layer that the feature belongs to you can use LayerID.
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 on IMapServerInit2. 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.