protected void CheckUnique()
{
if (!SortIndex.CheckUnique())
{
// Throws an exception and the name of any column if its Unique property set to
// True and non-unique values are found in the column.
throw ExceptionBuilder.NonUniqueValues(ColumnName);
}
}