System.Data.DataRelationCollection.RemoveAt C# (CSharp) Метод

RemoveAt() публичный Метод

Removes the relation at the given index from the collection. An IndexOutOfRangeException is thrown if this collection doesn't have a relation at this index. The CollectionChanged event is fired if it succeeds.
public RemoveAt ( int index ) : void
index int
Результат void
        public void RemoveAt(int index)
        {
            DataRelation dr = this[index];
            if (dr == null)
            {
                throw ExceptionBuilder.RelationOutOfRange(index);
            }
            Remove(dr);
        }