HeterogeneousColumn.IsPrimaryKey 属性

定义

设置或获取是否存在对该列定义的主键约束。

public:
 property bool IsPrimaryKey { bool get(); void set(bool value); };
public bool IsPrimaryKey { get; set; }
member this.IsPrimaryKey : bool with get, set
Public Property IsPrimaryKey As Boolean

属性值

一个 Boolean 值。

如果 为 true,则列上定义了主键约束。

如果 为 false,则没有主键。

注解

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

适用于