Share via


UniqueConstraint.IsPrimaryKey Property

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

Namespace:  Microsoft.Data.Schema.ScriptDom.Sql
Assembly:  Microsoft.Data.Schema.ScriptDom.Sql (in Microsoft.Data.Schema.ScriptDom.Sql.dll)

Syntax

'Declaration
Public Property IsPrimaryKey As Boolean
'Usage
Dim instance As UniqueConstraint 
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);
}
public function get IsPrimaryKey () : boolean 
public function set IsPrimaryKey (value : boolean)

Property Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

UniqueConstraint Class

UniqueConstraint Members

Microsoft.Data.Schema.ScriptDom.Sql Namespace