System.Data.DataColumnCollection.BaseRemove C# (CSharp) Method

BaseRemove() private method

Does verification on the column and it's name, and clears the column's dataSet pointer. An ArgumentNullException is thrown if this column is null. An ArgumentException is thrown if this column doesn't belong to this collection or if this column is part of a relationship. An ArgumentException is thrown if another column's compute expression depends on this column.
private BaseRemove ( DataColumn column ) : void
column DataColumn
return void
        private void BaseRemove(DataColumn column)
        {
            if (CanRemove(column, true))
            {
                // remove
                if (column._errors > 0)
                {
                    for (int i = 0; i < _table.Rows.Count; i++)
                    {
                        _table.Rows[i].ClearError(column);
                    }
                }
                UnregisterName(column.ColumnName);
                column.SetTable(null);
            }
        }