共用方式為


DesignerDataColumn.PrimaryKey 屬性

定義

取得值,指出資料行是否為資料表主索引鍵的一部分。

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

屬性值

如果資料行是資料表主索引鍵的一部分,則為 true,否則為 false

適用於