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


IRasterLayer.PrimaryField Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IRasterLayer.PrimaryField Property

Layer's primary field.

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

Parameters 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.

Remarks

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