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


ITable.Insert Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITable Interface > ITable.Insert Method
ArcGIS Developer Help

ITable.Insert Method

Returns a cursor that can be used to insert new Rows.

[Visual Basic .NET]
Public Function Insert ( _
    ByVal useBuffering As Boolean _
) As ICursor
[C#]
public ICursor Insert (
    bool useBuffering
);
[C++]
HRESULT Insert(
  VARIANT_BOOL useBuffering
);
[C++]
Parameters
useBuffering [in]

useBuffering is a parameter of type bool

Product Availability

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

Remarks

The Insert method returns an insert cursor that can be used to bulk insert rows. It offers significantly faster performance than multiple calls to CreateRow and Store for tables storing simple rows and simple features (that is, for tables whose CLSID is esriGeoDatabase.Row, esriGeoDatabase.Object, or esriGeoDatabase.Feature).

Insert cursors on tables containing complex objects use the CreateRow and Store methods to achieve polymorphism, and there is no difference in performance in these cases.

When using cursors within an edit session, they should always be scoped to edit operations. In other words, a cursor should be created after an edit operation has begun and should not be used once that edit operation has been stopped or aborted.

See Also

ITable Interface