Condividi tramite


Proprietà UniqueConstraintDefinition.IsPrimaryKey

Gets or sets whether the constraint is both unique and a primary key.

Spazio dei nomi  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Sintassi

'Dichiarazione
Public Property IsPrimaryKey As Boolean 
    Get 
    Set
'Utilizzo
Dim instance As UniqueConstraintDefinition 
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)

Valore proprietà

Tipo: System.Boolean
True if the constraint is both unique and a primary key; otherwise, false.

Vedere anche

Riferimento

UniqueConstraintDefinition Classe

Spazio dei nomi Microsoft.SqlServer.TransactSql.ScriptDom