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


IRasterLayer.PrimaryField Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IR > IRasterLayer Interface > IRasterLayer.PrimaryField Property
ArcGIS Developer Help

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(
  System.Int32* pnField
);
[C++]
Parameters
pnField [in]

pnField is a parameter of type long pnField [out, retval]
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