HeterogeneousTable.HasPrimaryKey 属性

定义

获取或设置表是否具有主键。

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

属性值

一个 Boolean 值。

如果 为 true,则表上定义了主键。

如果 为 false,则没有主键。

注解

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

适用于