HeterogeneousColumn.IsPrimaryKey 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
集合或取得欄位是否有定義主鍵約束。
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 版本。