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


IMxdServerQuery.Find Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IMxdServerQuery.Find Method

Returns an array of 'find objects' (that implement the IFindObject interface) that contain the given search string. If layerID is equal to -1, all layers are searched.

[Visual Basic .NET]
Public Function Find ( _
    ByVal MapName As String, _
    ByVal findString As String, _
    ByVal LayerID As Integer _
) As IArray
[C#]
public IArray Find (
    string MapName,
    string findString,
    int LayerID
);
[C++]
HRESULT Find(
  BSTR MapName,
  BSTR findString,
  long LayerID,
  IArray** findObjects
);
[C++]

Parameters MapName [in] MapName is a parameter of type BSTR findString [in] findString is a parameter of type BSTR LayerID [in] LayerID is a parameter of type long findObjects [out, retval]
findObjects is a parameter of type IArray

Product Availability

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

See Also

IMxdServerQuery Interface