共用方式為


InPrimaryKey 屬性

Gets a value that indicates whether the column is included in the definition of a PRIMARY KEY or UNIQUE constraint.

命名空間:  Microsoft.SqlServer.Management.SqlParser.Metadata
組件:  Microsoft.SqlServer.Management.SqlParser (在 Microsoft.SqlServer.Management.SqlParser.dll 中)

語法

'宣告
ReadOnly Property InPrimaryKey As Boolean
    Get
'用途
Dim instance As IColumn
Dim value As Boolean

value = instance.InPrimaryKey
bool InPrimaryKey { get; }
property bool InPrimaryKey {
    bool get ();
}
abstract InPrimaryKey : bool
function get InPrimaryKey () : boolean

屬性值

型別:System. . :: . .Boolean
true if the column is included in the definition of a PRIMARY KEY or UNIQUE constraint; otherwise, false.