DataColumn.AutoIncrementStep Property

 

Gets or sets the increment used by a column with its AutoIncrement property set to true.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

member AutoIncrementStep : int64 with get, set

Property Value

Type: System.Int64

The 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: