Condividi tramite


Proprietà InPrimaryKey

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

Spazio dei nomi  Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Sintassi

'Dichiarazione
ReadOnly Property InPrimaryKey As Boolean
    Get
'Utilizzo
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

Valore proprietà

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