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


IGridTableOp.AddField Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeoAnalyst > ESRI.ArcGIS.GeoAnalyst > Interfaces > IG > IGridTableOp Interface > IGridTableOp.AddField Method
ArcGIS Developer Help

IGridTableOp.AddField Method

Add a field to the fields collection.

[Visual Basic .NET]
Public Sub AddField ( _
    ByVal inputGrid As IRasterDataset, _
    ByVal Field As IField _
)
[C#]
public void AddField (
    IRasterDataset inputGrid,
    IField Field
);
[C++]
HRESULT AddField(
  IRasterDataset* inputGrid,
  IField* Field
);
[C++]
Parameters
inputGrid [in]

inputGrid is a parameter of type IRasterDataset* Field [in]
Field is a parameter of type IField*

Product Availability

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

Remarks

inputGrid

an input grid or IRasterDataset

Field

an IField object to add to the grid value attribute table (vat).

See Also

IGridTableOp Interface