This documentation is archived and is not being maintained.
Represents a restriction on a set of columns in which all values must be unique.
The UniqueConstraint type exposes the following members.
|CheckStateForProperty||Infrastructure. (Inherited from Constraint.)|
|Equals||Compares this constraint to a second to determine if both are identical. (Overrides Object.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Gets the hash code of this instance of the UniqueConstraint object. (Overrides Object.GetHashCode().)|
|GetType||Gets the type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|SetDataSet||Sets the constraint's DataSet. (Inherited from Constraint.)|
|ToString||Gets the ConstraintName, if there is one, as a string. (Inherited from Constraint.)|
|_DataSet||Infrastructure. Gets the DataSet to which this constraint belongs. (Inherited from Constraint.)|
|Columns||Gets the array of columns that this constraint affects.|
|ConstraintName||The name of a constraint in the ConstraintCollection. (Inherited from Constraint.)|
|ExtendedProperties||Gets the collection of user-defined constraint properties. (Inherited from Constraint.)|
|IsPrimaryKey||Gets a value indicating whether or not the constraint is on a primary key.|
|Table||Gets the table to which this constraint belongs. (Overrides Constraint.Table.)|