This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITableWrite2 Interface > ITableWrite2.Truncate Method (ArcObjects .NET 10.5 SDK) |
Truncates all rows in the table.
[Visual Basic .NET]
Public Sub Truncate ( _
)
[C#] public void Truncate ( );
[C++]
HRESULT Truncate(
void
);
The truncate method is only available for local geodatabase datasets and non-versioned SDE feature classes and tables. This method will truncate the non-versioned table or feature class table. Since this method ignores any schma locks that might be present on the table it should be used with caution.