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
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)

Property Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

UniqueConstraint Class

Microsoft.Data.Schema.ScriptDom.Sql Namespace