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


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

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
);
[C++]
Parameters
Search [in]

Search is a parameter of type BSTR Contains [in]
Contains is a parameter of type bool Fields [in]
Fields is a parameter of type VARIANT TrackCancel [in]
TrackCancel is a parameter of type ITrackCancel*

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