DataColumn::AutoIncrementStep Property
.NET Framework (current version)
Gets or sets the increment used by a column with its AutoIncrement property set to true.
Assembly: System.Data (in System.Data.dll)
public: property long long AutoIncrementStep { long long get(); void set(long long value); }
Property Value
Type: System::Int64The number by which the value of the column is automatically incremented. The default is 1.
| Exception | Condition |
|---|---|
| ArgumentException | The value set is zero. |
The following example sets the AutoIncrement, AutoIncrementSeed, and AutoIncrementStep properties.
.NET Framework
Available since 1.1
Available since 1.1
Show: