共用方式為


DbSyncColumnDescription.IsPrimaryKey 屬性

取得或設定這個資料行是否屬於資料表的主索引鍵一部分。

命名空間: Microsoft.Synchronization.Data
組件: Microsoft.Synchronization.Data (在 microsoft.synchronization.data.dll)

語法

'宣告
<XmlAttributeAttribute("pk")> _
Public Property IsPrimaryKey As Boolean
'用途
Dim instance As DbSyncColumnDescription
Dim value As Boolean

value = instance.IsPrimaryKey

instance.IsPrimaryKey = value
[XmlAttributeAttribute("pk")] 
public bool IsPrimaryKey { get; set; }
[XmlAttributeAttribute(L"pk")] 
public:
property bool IsPrimaryKey {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_IsPrimaryKey ()

/** @property */
public void set_IsPrimaryKey (boolean value)
public function get IsPrimaryKey () : boolean

public function set IsPrimaryKey (value : boolean)

屬性值

如果這個資料行屬於資料表的主索引鍵一部分,則為 true,否則為 false

請參閱

參考

DbSyncColumnDescription 類別
DbSyncColumnDescription 成員
Microsoft.Synchronization.Data 命名空間