Compartir a través de


UniqueConstraintDefinition.IsPrimaryKey Propiedad

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

Espacio de nombres:  Microsoft.SqlServer.TransactSql.ScriptDom
Ensamblado:  Microsoft.SqlServer.TransactSql.ScriptDom (en Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Sintaxis

'Declaración
Public Property IsPrimaryKey As Boolean 
    Get 
    Set
'Uso
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)

Valor de la propiedad

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

Vea también

Referencia

UniqueConstraintDefinition Clase

Espacio de nombres Microsoft.SqlServer.TransactSql.ScriptDom