IsPrimaryKey property

Checks whether the index is the primary key.

Syntax
Visual Basic
Public Readonly Property IsPrimaryKey As Boolean
C#
public bool IsPrimaryKey { get;}
Property value

True if the index is the primary key, false if the index is not the primary key.

Remarks

Columns in the primary key may not be null.

See also