ArcObjects Library Reference (Carto)  

IFind.Find Method

Finds the specified search string in the given attribute fields.

[Visual Basic .NET]
Public Function Find ( _
    ByVal Search As String, _
    ByVal Contains As Boolean, _
    ByVal Fields As Object, _
    ByVal TrackCancel As ITrackCancel _
) As IArray
[C#]
public IArray Find (
    string Search,
    bool Contains,
    object Fields,
    ITrackCancel TrackCancel
);
[C++]
HRESULT Find(
  BSTR Search,
  VARIANT_BOOL Contains,
  VARIANT Fields,
  ITrackCancel* TrackCancel,
  IArray** ppArrObj
);
[C++]

Parameters

Search [in]   Search is a parameter of type BSTR Contains [in]   Contains is a parameter of type VARIANT_BOOL Fields [in]   Fields is a parameter of type VARIANT TrackCancel [in]

  TrackCancel is a parameter of type ITrackCancel

ppArrObj [out, retval]

  ppArrObj is a parameter of type IArray

Product Availability

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

Remarks

This method returns an reference to an Array of FeatureFindData objects.  To search, pass in a reference to an Fields object along with the search string and a boolean option to return features that have attributes that contain the string.  If Contains = False, only objects with an attribute that consists of the entire search string will be returned.

See Also

IFind Interface