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


IIdentify2.Identify Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IIdentify2.Identify Method

Identifies objects at the specified location.

[Visual Basic .NET]
Public Function Identify ( _
    ByVal pGeom As IGeometry, _
    ByVal pTrackCancel As ITrackCancel _
) As IArray
[C#]
public IArray Identify (
    IGeometry pGeom,
    ITrackCancel pTrackCancel
);
[C++]
HRESULT Identify(
  IGeometry* pGeom,
  ITrackCancel* pTrackCancel,
  IArray** ppArrObj
);
[C++]

Parameters pGeom [in]
pGeom is a parameter of type IGeometry pTrackCancel [in]
pTrackCancel 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

When the IIdentify interface is on a map layer, the Identify method returns an array of FeatureIdentifyObject objects.

On a FeatureIdentifyObject, you can do a QI to the IIdentifyObj interface to get more information about the identified feature. The IIdentifyObj interface returns the window handle, layer, and name of the feature; it has methods to flash the feature in the display and to display a context menu at the Identify location.

This method performs an identify operation with the provided geometry.  When identifying layers, typically a small envelope is passed in rather than a point to account for differences in the precision of the display and the feature geometry.

See Also

IIdentify2 Interface