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


IMapServer4.Find Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapServer4.Find Method

Returns a collection of Map Server Find Result objects that contain the given search string. If LayerIDs is Nothing/Null or empty, all layers are searched.

[Visual Basic .NET]
Public Function Find ( _
    ByVal mapDesc As IMapDescription, _
    ByVal MapImage As IImageDisplay, _
    ByVal searchString As String, _
    ByVal Contains As Boolean, _
    ByVal searchFields As String, _
    ByVal option As esriFindOption, _
    ByVal layerIds As ILongArray _
) As IMapServerFindResults
[C#]
public IMapServerFindResults Find (
    IMapDescription mapDesc,
    IImageDisplay MapImage,
    string searchString,
    bool Contains,
    string searchFields,
    esriFindOption option,
    ILongArray layerIds
);
[C++]
HRESULT Find(
  IMapDescription* mapDesc,
  IImageDisplay* MapImage,
  BSTR searchString,
  VARIANT_BOOL Contains,
  BSTR searchFields,
  esriFindOption option,
  ILongArray* layerIds,
  IMapServerFindResults** findResults
);
[C++]

Parameters mapDesc [in]
mapDesc is a parameter of type IMapDescription MapImage [in]
MapImage is a parameter of type IImageDisplay searchString [in] searchString is a parameter of type BSTR Contains [in] Contains is a parameter of type VARIANT_BOOL searchFields [in] searchFields is a parameter of type BSTR option [in]
option is a parameter of type esriFindOption layerIds [in]
layerIds is a parameter of type ILongArray findResults [out, retval]
findResults is a parameter of type IMapServerFindResults

Product Availability

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

See Also

IMapServer4 Interface