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

IIdentify2.Identify Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > II > IIdentify2 Interface > IIdentify2.Identify Method
ArcGIS Developer Help

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
public IArray Identify (
    IGeometry pGeom,
    ITrackCancel pTrackCancel
HRESULT Identify(
  IGeometry* pGeom,
  ITrackCancel* pTrackCancel
pGeom [in]

pGeom is a parameter of type IGeometry* pTrackCancel [in]
pTrackCancel is a parameter of type ITrackCancel*

Product Availability

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


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