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


IMapServerFindResult Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerFindResult Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMapServerFindResult Interface

Provides access to the Map Server Find Result Interface.

Product Availability

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

When To Use

Use IMapServerFindResult to access properties of map features returned as a result of using the IMapServer Find method.

Members

Name Description
Read/write property FeatureId The ID of the found feature.
Read/write property FeatureProperties A set of name-value pairs for the found features's field names and values.
Read/write property FeatureShape The geometry of the found feature.
Read/write property FieldName The field name.
Read/write property LayerID The layer ID.
Read/write property Value The found value.

CoClasses that implement IMapServerFindResult

CoClasses and Classes Description
MapServerFindResult The Map Server Find Result coclass provides information about a 'find result'.

Remarks

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.