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


IMapServer4.Find Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServer4 Interface > IMapServer4.Find Method
ArcGIS Developer Help

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
);
[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 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*

Product Availability

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

See Also

IMapServer4 Interface