DesignerDataColumn.PrimaryKey 属性

定义

获取一个值,该值指示列是否是表主键的一部分。

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

属性值

true 如果列是表的主键的一部分,则为 ;否则,为 false.

适用于