System.Data.DataRelationCollection.Remove C# (CSharp) Method

Remove() public method

Removes the relation with the given name from the collection. An IndexOutOfRangeException is thrown if this collection doesn't have a relation with that name The CollectionChanged event is fired if it succeeds.
public Remove ( string name ) : void
name string
return void
        public void Remove(string name)
        {
            DataRelation dr = this[name];
            if (dr == null)
            {
                throw ExceptionBuilder.RelationNotInTheDataSet(name);
            }
            Remove(dr);
        }

Same methods

DataRelationCollection::Remove ( DataRelation relation ) : void