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 命名空间