This document is archived and information here might be outdated. Recommended version. |
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.