语言

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值。

如果 成立,则该列定义了主键约束。

如果 不成立,则没有主键。

注解

该命名空间、类或成员仅在Microsoft .NET框架2.0版本中支持。

适用于