Skip to content

FieldInfo.IsPrimaryKey property

Gets or sets a value indicating whether the field is primary key.

public bool IsPrimaryKey { get; set; }

Property Value

true if the field is primary key; otherwise, false.

See Also