共用方式為


IsPrimaryKey 屬性

Sets or gets whether there is a primary key constraint defined on the column.

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

語法

'宣告
Public Property IsPrimaryKey As Boolean
    Get
    Set
'用途
Dim instance As HeterogeneousColumn
Dim value As Boolean

value = instance.IsPrimaryKey

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

屬性值

型別:System. . :: . .Boolean
A Boolean value.
If true, there is a primary key constraint defined on the column.
If false, there is no primary key.

備註

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