AutoIncrement 属性
获取或设置一个值,该值指示在表中插入新行时该列的值是否自动递增。
命名空间: Microsoft.Synchronization.Data
程序集: Microsoft.Synchronization.Data(在 Microsoft.Synchronization.Data.dll 中)
语法
声明
Public Property AutoIncrement As Boolean
Get
Set
用法
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)
属性值
类型:System. . :: . .Boolean
如果该列的值自动递增,则为 true;否则为 false。
异常
异常 | 条件 |
---|---|
ArgumentNullException | value 为 null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) 。 |