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


ITableWrite2.Truncate Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

ITableWrite2.Truncate Method

Truncates all rows in the table.

[Visual Basic .NET]
Public Sub Truncate ( _
)
[C#]
public void Truncate (
);
[C++]
HRESULT Truncate(
void
);

Product Availability

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

Remarks

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.

See Also

ITableWrite2 Interface