Share via


DataSetFieldSchema.Identity 屬性

定義

取得值,指出資料欄位的值是否會針對每個加入至資料表或檢視的新資料列自動遞增。

public:
 property bool Identity { bool get(); };
public bool Identity { get; }
member this.Identity : bool
Public ReadOnly Property Identity As Boolean

屬性值

Boolean

如果 DataType 是數值,且資料行的值會隨著新資料列加入至 DataTable 而自動遞增則為 true,否則為 false

實作

備註

Identity屬性(property)會對應至的 AutoIncrement 屬性(property) DataColumn

適用於

另請參閱