SyncSchemaColumn.AutoIncrement Property

Gets or sets a value indicating whether the column automatically increments its value when new rows are inserted into the table.

Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

Syntax

'Declaration
Public Property AutoIncrement As Boolean
    Get
    Set
'Usage
Dim instance As SyncSchemaColumn
Dim value As Boolean

value = instance.AutoIncrement

instance.AutoIncrement = value
public bool AutoIncrement { get; set; }
public:
property bool AutoIncrement {
    bool get ();
    void set (bool value);
}
member AutoIncrement : bool with get, set
function get AutoIncrement () : boolean
function set AutoIncrement (value : boolean)

Property Value

Type: System.Boolean
true if the column automatically increments its value; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

value is a null reference (Nothing in Visual Basic).

See Also

Reference

SyncSchemaColumn Class

Microsoft.Synchronization.Data Namespace