Partager via


Propriété UniqueConstraintDefinition.IsPrimaryKey

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

Espace de noms :  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly :  Microsoft.SqlServer.TransactSql.ScriptDom (en Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntaxe

'Déclaration
Public Property IsPrimaryKey As Boolean 
    Get 
    Set
'Utilisation
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)

Valeur de propriété

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

Voir aussi

Référence

UniqueConstraintDefinition Classe

Espace de noms Microsoft.SqlServer.TransactSql.ScriptDom