System.Data.DataColumn.Unique Property

Gets or sets a value that indicates whether the values in each row of the column must be unique.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue(false)]
public bool Unique { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

As soon as this property is changed from false to true, a unique constraint will be created on this column to make sure that values are unique.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0