語言

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

如果 是真的,表上就定義了一個主鍵。

為錯誤,則不存在主鍵。

備註

此命名空間、類別或成員僅支援於 Microsoft .NET 框架 2.0 版本。

適用於