IIdentifyDialog2 Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > CartoUI > ESRI.ArcGIS.CartoUI > Interfaces > II > IIdentifyDialog2 Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (CartoUI)  

IIdentifyDialog2 Interface

Provides access to members that control Identifying tables by OID.

Product Availability

Available with ArcGIS Desktop.


Name Description
Method AddLayerIdentifyObject Add layer and show object hit at given location.
Method AddLayerIdentifyPoint Add layer and show objects that contain the given point.
Method AddTableIdentifyOID Add table and show row of the given OID.
Write-only property BasicMap The basic map of identifying layers.
Read/write property HideContextMenu Indicates if the context menu for identify results should be hidden when the user right-clicks.
Read/write property HideLayersComboBox Indicates whether to hide Layers ComboBox in Identify Dialog.
Method SelectLayer Select a specific layer in the combobox. This only works if the dialog is visible.
Read/write property Visible Indicates if the Identify Dialog is visible.

CoClasses that implement IIdentifyDialog2

CoClasses and Classes Description
IdentifyDialog Identifying layers by OID or a point.


IIdentifyDialog2 completes the IIdentifyDialog interface by adding the following properties and methods:

AddLayerIdentifyObject is similar to AddLayerIdentifyPoint but restricts the search to the object passed as the second parameter. This is useful to sort out features that can be stacked on the same location.

AddTableIdentifyOID allows you to display the content of a table row in the identify window. This is useful to browse the content of a stand alone table. The first parameter is the table to search and the third one is the OID to look for. In case the layer or stand alone table does not have an OID it is possible to pass a table having OIDs on which the search will be performed as the second parameter. The table name displayed in the dialog will be the name of the first table but the data shown will be read from the second table. It is up to you to build this table, use another table that bears some relation with the first one, etc

More specifically, the first object must support IAttributeTable. Only objects like layers and stand alone table support this interface (thye also support ITable). The second object, if used, must be geodatabase table or a feature class and will have an OID column. Typically it will support ITable and the ITable::HasOID property should return true.

BasicMap, is the common map interface used by a number of applications in the ArcGIS suite such as MapGlobe, MapScene, etc.

HideContextMenu indicates if the context menu for identify results will show or not when the user right-clicks in the Identify Dialog. HideLayersComboBox indicates whether to hide Layers ComboBox in Identify Dialog.
SelectLayer selects a specific layer in the combobox. This only works if the dialog is visible.