Table.PrimaryKey Property

Gets the primary key.

Namespace:  Microsoft.SqlServerCe.Management.Scripting.Schema
Assembly:  Microsoft.SqlServerCe.Management.Scripting (in Microsoft.SqlServerCe.Management.Scripting.dll)

Syntax

'Declaration
Public ReadOnly Property PrimaryKey As Constraint
    Get
'Usage
Dim instance As Table
Dim value As Constraint

value = instance.PrimaryKey
public Constraint PrimaryKey { get; }
public:
property Constraint^ PrimaryKey {
    Constraint^ get ();
}
member PrimaryKey : Constraint
function get PrimaryKey () : Constraint

Property Value

Type: Microsoft.SqlServerCe.Management.Scripting.Schema.Constraint
The primary key.

See Also

Reference

Table Class

Microsoft.SqlServerCe.Management.Scripting.Schema Namespace