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


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

IMxdServerQuery.Identify Method

Returns an array of 'identify objects' (that support the IIdentifyObj interface) at the given location. If layerID is equal to -1, the top-most visible layer with any results is used. If layerID is equal to -2, all visible layers will be queried.

[Visual Basic .NET]
Public Function Identify ( _
    ByVal MapName As String, _
    ByVal LayerID As Integer, _
    ByVal Shape As IGeometry _
) As IArray
[C#]
public IArray Identify (
    string MapName,
    int LayerID,
    IGeometry Shape
);
[C++]
HRESULT Identify(
  BSTR MapName,
  long LayerID,
  IGeometry* Shape,
  IArray** identifyObjects
);
[C++]

Parameters MapName [in] MapName is a parameter of type BSTR LayerID [in] LayerID is a parameter of type long Shape [in]
Shape is a parameter of type IGeometry identifyObjects [out, retval]
identifyObjects is a parameter of type IArray

Product Availability

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

See Also

IMxdServerQuery Interface