Npgsql.NpgsqlParameterCollection.Remove C# (CSharp) Method

Remove() public method

Removes the specified NpgsqlParameter from the collection.
public Remove ( object oValue ) : void
oValue object The NpgsqlParameter to remove from the collection.
return void
        public override void Remove(object oValue)
        {
            NpgsqlEventLog.LogMethodEnter(LogLevel.Debug, CLASSNAME, "Remove", oValue);

            CheckType(oValue);

            NpgsqlParameter value = oValue as NpgsqlParameter;

            if (value.Collection != this)
            {
                throw new InvalidOperationException("The item does not belong to this collection");
            }

            value.Collection = null;
            this.InternalList.Remove(value);
            this.InvalidateHashLookups();
        }

Same methods

NpgsqlParameterCollection::Remove ( Npgsql.NpgsqlParameter item ) : bool
NpgsqlParameterCollection::Remove ( string parameterName ) : void