ArcObjects Library Reference  (Carto)    

IIdentify.Identify Method

Identifies objects at the specified location.

[Visual Basic 6.0]
Function Identify(
    ByVal pGeom As IGeometry _
) As IArray
[Visual Basic .NET]
Public Function Identify ( _
    ByVal pGeom As IGeometry _
) As IArray
public IArray Identify (
    IGeometry pGeom
public IArray identify (
    IGeometry pGeom
HRESULT Identify(
  IGeometry* pGeom,
  IArray** ppArrObj


pGeom [in]

  pGeom is a parameter of type IGeometry

ppArrObj [out, retval]

  ppArrObj is a parameter of type IArray

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

IIdentify Interface