共用方式為


ReplicationColumn.InPrimaryKey 屬性

Gets or sets whether the column is participating in a primary key or not.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public Property InPrimaryKey As Boolean 
    Get 
    Set
'用途
Dim instance As ReplicationColumn 
Dim value As Boolean 

value = instance.InPrimaryKey

instance.InPrimaryKey = value
public bool InPrimaryKey { get; set; }
public:
property bool InPrimaryKey {
    bool get ();
    void set (bool value);
}
member InPrimaryKey : bool with get, set
function get InPrimaryKey () : boolean 
function set InPrimaryKey (value : boolean)

屬性值

型別:System.Boolean
A Boolean value. If true, the referenced column is part of a primary key or unique key constraint defined on the table. If false, the referenced column is not part of a primary key or unique key constraint defined on the table.

備註

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.

請參閱

參考

ReplicationColumn 類別

Microsoft.SqlServer.Replication 命名空間