ArcObjects Library Reference (Carto)  

IRasterLayer.PrimaryField Property

Layer's primary field.

[Visual Basic .NET]
Public Property PrimaryField As Integer
public int PrimaryField {get; set;}
HRESULT get_PrimaryField(
  long* pnField
HRESULT put_PrimaryField(
  long pnField


pnField [out, retval]   pnField is a parameter of type long pnField [in]   pnField is a parameter of type long

Product Availability

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


The PrimaryField property controls the field that provides map tips and the field that appears in the left pane of the Identify window. The integer property value represents the column number of the selected field, where the value field equals 1.

See Also

IRasterLayer Interface