Npgsql.NpgsqlParameterCollection.Insert C# (CSharp) Method

Insert() public method

Insert the specified parameter into the collection.
public Insert ( int index, Npgsql.NpgsqlParameter item ) : void
index int Index of the existing parameter before which to insert the new one.
item Npgsql.NpgsqlParameter Parameter to insert.
return void
        public void Insert(int index, NpgsqlParameter item)
        {
            if (item.Collection != null)
            {
                throw new Exception("The parameter already belongs to a collection");
            }

            InternalList.Insert(index, item);
            item.Collection = this;
            this.InvalidateHashLookups();
        }

Same methods

NpgsqlParameterCollection::Insert ( int index, object oValue ) : void